10.02.2013, 20:54
Here is no debug needed.
You get the vehicleid
BEFORE the player is in the vehicle. So it will return 0 and none of your car check will work.
Just use 'vehicleid'.
Although
%s is not supported in SendClientMessage(); You have to get the player name at first then format a string and then send it via SendClientMessage()
You get the vehicleid
Код:
new CarCheck = GetPlayerVehicleID(playerid)
Just use 'vehicleid'.
Although
Код:
SendClientMessage(playerid, COLOR_RED, "* %s spins a key and tries to start vehicle engine.*");