GetPlayerVehicleID
#1

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"
Reply
#2

If the vehicle id (GetPlayerVehicleID) is 300, -1 will just make it 299.
Reply
#3

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)