[Help] Vehicle Spawner
#3

Quote:
Originally Posted by Luis-
View Post
Looks like the vehicle id's are getting mixed up, you should try doing some debugging.
That.

When destroying a vehicle for a player A, you must reset the variable because if another vehicle is created with the same vehicle ID for player B, it will remove the vehicle of player B when it's supposed not to.

pawn Code:
// whenever destroying player's vehicle:
DestroyVehicle(veh1[playerid]);
veh1[playerid] = INVALID_VEHICLE_ID;
Reply


Messages In This Thread
[Help] Vehicle Spawner - by kalanerik99 - 22.05.2015, 15:45
Re: [Help] Vehicle Spawner - by Luis- - 22.05.2015, 15:47
Re: [Help] Vehicle Spawner - by Konstantinos - 22.05.2015, 16:14
Re: [Help] Vehicle Spawner - by kalanerik99 - 22.05.2015, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)