14.09.2016, 08:34
What does GetPlayerVehicle and GetGangVehicle return when a match not found? If it returns INVALID_PLAYER_ID/INVALID_VEHICLE_ID then you need to make sure that "v" is not equal to those definitions (or 65535) before using it in arrays. I doubt it passed the check and accessed LockStatus array.
Now that I'm thinking about it, you can just add above "new v = ..." line:
since the vehicle was passed is not valid there is really no reason to do the rest.
Now that I'm thinking about it, you can just add above "new v = ..." line:
pawn Code:
if (carid == INVALID_VEHICLE_ID) return;