Another question for today, CreateVehicle and GetPlayerVehicleID
#3

Vehicleids (unlike playerids) start at 1, not zero. This is done like that so you can do:

pawn Код:
if(GetPlayerVehicleID(playerid) == 0)
{
    // Not in a vehicle
}
Reply


Messages In This Thread
Another question for today, CreateVehicle and GetPlayerVehicleID - by _Tommy - 21.01.2011, 20:11
Re: Another question for today, CreateVehicle and GetPlayerVehicleID - by _Tommy - 21.01.2011, 23:33
Re: Another question for today, CreateVehicle and GetPlayerVehicleID - by Vince - 21.01.2011, 23:46
Re: Another question for today, CreateVehicle and GetPlayerVehicleID - by _Tommy - 21.01.2011, 23:59
Re: Another question for today, CreateVehicle and GetPlayerVehicleID - by _Tommy - 22.01.2011, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)