OnVehicleDeath. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnVehicleDeath. (
/showthread.php?tid=389804)
OnVehicleDeath. -
budelis - 03.11.2012
Hi,
OnVehicleDeath function haves "killerid". But if car explode his self i think killerid will be INVALID_PLAYER_ID right? and can i INVALID_PLAYER_ID write to variable? i don't care is player connect or no.
Re: OnVehicleDeath. -
YoYo123 - 03.11.2012
Why would you write a variable into a variable? If the car explodes itself the killerid is INVALID_PLAYER_ID..
Re: OnVehicleDeath. -
Vince - 03.11.2012
I think this callback is still somewhat bugged. When a vehicle explodes by itself, killerid returns 255 (0xFF). This was the value of INVALID_PLAYER_ID in the pre 0.3 era.
Re: OnVehicleDeath. -
budelis - 03.11.2012
I want to say i have a variable like:
Код:
new TEST[ MAX_PLAYERS ]
And when vehicle death:
Код:
TEST[ killerid ] = 1;
But can i set this variable when killerid is INVALID_PLAYER_ID ?
Re: OnVehicleDeath. -
YoYo123 - 03.11.2012
Quote:
Originally Posted by budelis
I want to say i have a variable like:
Код:
new TEST[ MAX_PLAYERS ]
And when vehicle death:
Код:
TEST[ killerid ] = 1;
But can i set this variable when killerid is INVALID_PLAYER_ID ?
|
Yes, you can.