SA-MP Forums Archive
Help ID problem - 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: Help ID problem (/showthread.php?tid=324689)



Help ID problem - Dark Crow - 10.03.2012

well i have just found out that i have a problem with all car ID's because the GM i am using had all ID's like cars from ID 70 to 80 are planes and such but all of that got Mixed UP so when i enter a bike it says it's a plane and many other is there a way to fix that problem so i dont need to use the
Код:
if(GetPlayerVehicleID(playerid) >= 161 && GetPlayerVehicleID(playerid) <= 185)
is there any other command to use instead to check for the car id?? Pls help


Re: Help ID problem - Babul - 10.03.2012

when you create vehicles, they get assigned increasing vehicleid's. inserting a AddStaticVehicle() or CreateVehicle() in between your already scritped ones, will also disturb the order of the vehicleids created.
your solution is to check for the model of the vehicleid. have a look at GetVehicleModel


Re: Help ID problem - Dark Crow - 10.03.2012

i know that but i use diffrent cars like i use premiers for Mafia cars and also for rent and players can buy a premier also if i use it with GetVehicleModel i can't use it for something else


Re: Help ID problem - Dark Crow - 22.03.2012

anyone know how can i fix the ids? i have bikes that are planes and many other things! all is mixed up