22.05.2015, 16:14
Quote:
Looks like the vehicle id's are getting mixed up, you should try doing some debugging.
|
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;