[Tutorial] Exiting Tram without having problem
#14

i have just 1 thing to say and that is why to check every vehicle id when you can check the vehicle model

Quote:
pawn Code:
new vid = GetPlayerVehicleID(playerid);
Creates a new variable which checks if player's vehicleID.

pawn Code:
if(vid == 449)
If the player vehicleID is 449 which is Tram. It will processed the below code. If it is not it will not processed the below code.

fix:


Code:
new vid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vid) ==  449)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)