GetPlayerVehicleID - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetPlayerVehicleID (
/showthread.php?tid=93293)
GetPlayerVehicleID -
Stas92 - 24.08.2009
Do somebody know, why some peoples uses GetPlayerVehicleID like this:
Код:
new car = GetPlayerVehicleID(playerid) - 1;
new vehicleid = GetPlayerVehicleID(playerid);
I can't understand, why they use the " - 1"
Re: GetPlayerVehicleID -
MenaceX^ - 24.08.2009
If the vehicle id (GetPlayerVehicleID) is 300, -1 will just make it 299.
Re: GetPlayerVehicleID -
Stas92 - 24.08.2009
Yes, I know ... but why do, for example in 'Cartlitos RP', scripter use this?
I want to say, that I don't understand the sense
Re: GetPlayerVehicleID -
Correlli - 24.08.2009
Quote:
Originally Posted by Stas92
Yes, I know ... but why do, for example in 'Cartlitos RP', scripter use this?
I want to say, that I don't understand the sense 
|
It's just how the system in that script works.