GetPlayervehicleID(playerid)-1
#1

Why if I put GetPlayerVehicleID ( playerid ) -1 does not work to me while in other GM I always find that " -1 " ?

What for?
Reply
#2

'Cause vehicleids start at 1 and array indices start at 0. So the information for vehicle 1 is stored in slot 0, the information for vehicle 2 is stored in slot 1 and the information for vehicle 2000 is stored in slot 1999.
Reply
#3

Thank you so much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)