SA-MP Forums Archive
GetPlayervehicleID(playerid)-1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayervehicleID(playerid)-1 (/showthread.php?tid=613660)



GetPlayervehicleID(playerid)-1 - AlexPalermitano97 - 30.07.2016

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

What for?


Re: GetPlayervehicleID(playerid)-1 - Vince - 30.07.2016

'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.


Re: GetPlayervehicleID(playerid)-1 - AlexPalermitano97 - 30.07.2016

Thank you so much