Problem with declaring vehicle ID
#2

Change
pawn Код:
vehicle = GetPlayerVehicleID(playerid);
to
pawn Код:
vehicle = GetVehicleModel(GetPlayerVehicleID(playerid));
Check AddStaticVehicle/AddStaticVehicleEx/CreateVehicle, they return an ID to identify the vehicle they created. GetPlayerVehicleID returns the ID given by those functions, not the Model ID. Use GetVehicleModel to get the Model ID.

Best regards.
Reply


Messages In This Thread
Problem with declaring vehicle ID - by Sc0pion - 27.06.2015, 14:48
Respuesta: Problem with declaring vehicle ID - by [DOG]irinel1996 - 27.06.2015, 15:07
Re: Respuesta: Problem with declaring vehicle ID - by Sc0pion - 27.06.2015, 16:06
Respuesta: Problem with declaring vehicle ID - by [DOG]irinel1996 - 27.06.2015, 16:30
Re: Respuesta: Problem with declaring vehicle ID - by Sc0pion - 27.06.2015, 17:30

Forum Jump:


Users browsing this thread: 2 Guest(s)