SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/03/2018, 09:05 AM   #4531
KayJ
Gangsta
 
Join Date: Apr 2014
Posts: 708
Reputation: 61
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by GospodinX View Post
Do I need to hide textdraws onplayerdisconnect?
Yes, otherwise it will be bugged for player who joins after him.
__________________
SA:MP Wikipedia Profile

[Filterscript] Position - Save, Load & Delete [Y_INI] [ZCMD]
[Include] InfoText TextDraw
KayJ is offline   Reply With Quote
Old 16/03/2018, 07:57 AM   #4532
Aeny
Little Clucker
 
Join Date: Apr 2010
Posts: 2
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

First post after a long time of lurking.

It seems OnPlayerEnterVehicle doesn't get called when a player wants to enter a vehicle as driver and the doors are locked, but does get called when the doors are unlocked. OnPlayerEnterVehicle always gets called for passengers even when doors are locked.

Is this a known issue and is there a workaround for this? I know the animation not getting triggered is a known thing, but the callback not being called?
Aeny is offline   Reply With Quote
Old 16/03/2018, 12:04 PM   #4533
ISmokezU
Gangsta
 
Join Date: Aug 2016
Posts: 555
Reputation: 73
Default Re: Little coding questions - For general minor queries 5

Could be an error in your code. Do you mind sharing it?
ISmokezU is online now   Reply With Quote
Old 19/03/2018, 07:59 AM   #4534
Aeny
Little Clucker
 
Join Date: Apr 2010
Posts: 2
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by ISmokezU View Post
Could be an error in your code. Do you mind sharing it?
Used following code to reproduce the issue I'm having

Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new playerAnnouncement[128];
	format(playerAnnouncement, sizeof(playerAnnouncement), "playerid %d attempted to enter vehicleId %d (passenger %d)", playerid, vehicleid, ispassenger);
	SendClientMessage(playerid, 0xfffafa, playerAnnouncement);
	return 1;
}
The rest of the script is just bare.pwn as included within the server download.
Aeny is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a soldier aotumaticly be general when the general dies ? AlbanianGuy Scripting Help 35 13/05/2012 03:35 PM
Minor problem Desert Help Archive 4 17/03/2010 06:24 PM
Counting with mysql queries actiwe Help Archive 2 26/02/2010 02:36 PM
SQL queries using GROUP BY Dabombber Help Archive 2 05/10/2009 07:47 PM


All times are GMT. The time now is 10:54 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.