OnVehicleDeath.
#1

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.
Reply
#2

Why would you write a variable into a variable? If the car explodes itself the killerid is INVALID_PLAYER_ID..
Reply
#3

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.
Reply
#4

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 ?
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)