Problem with declaring vehicle ID
#1

Fixed!
Reply
#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
#3

Fixed!
Reply
#4

Well... I see you use CreateDynamicCP from Incognito's Streamer... then you should use CreateDynamicRaceCP and move the script from OnPlayerEnterDynamicCP to OnPlayerEnterDynamicRaceCP.
Reply
#5

Fixed!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)