If this can work out? Bike = Gangcar = AddStaticVeh.. - 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: If this can work out? Bike = Gangcar = AddStaticVeh.. (
/showthread.php?tid=172004)
If this can work out? Bike = Gangcar = AddStaticVeh.. -
Voldemort - 28.08.2010
So it is posibble to get two values in one attempt.
Like
Bike[0] = GangCar[0] = AddStaticVehicle(...
Bike[1] = GangCar[1] = AddStaticVehicle(...
GangCar[2] = AddStaticVehicle(...
Does it Bike[0] and GangCar[0] will be vehicleid ?
Re: If this can work out? Bike = Gangcar = AddStaticVeh.. -
Ash. - 28.08.2010
If Bike and GangCar are two different things, then you may have duplicate index numbers (eg Bike[0] and GangCar[0])
Re: If this can work out? Bike = Gangcar = AddStaticVeh.. -
Voldemort - 28.08.2010
Well I need this for Bike licenses, to get same values, I will use Bike to check if this is bike and gangcar to check which gang car it is.
So Does it Bike[0] and GangCar[0] will be same vehicleid ?
Re: If this can work out? Bike = Gangcar = AddStaticVeh.. -
Ash. - 28.08.2010
If they are the same vehicle, yes - but surely this will give you "already defined" errors?
Re: If this can work out? Bike = Gangcar = AddStaticVeh.. -
Voldemort - 28.08.2010
No its compile w/o errors, just haven't tested because I can start to test only when all bikes who is bikes is writed, long story why I cant tets only one car, so in script is some 100 bikes and I dont want copy to all 100 before I dont know if this work
Re: If this can work out? Bike = Gangcar = AddStaticVeh.. -
Sascha - 28.08.2010
this should work...
GangCar and Bike are 2 different things...
each of them (however you call them) will only replace the vehicleID of the vehicle you added for it
Re: If this can work out? Bike = Gangcar = AddStaticVeh.. -
Voldemort - 28.08.2010
Actualy it works, just now I decide to make bikes by model id and check only cars what is < than in game created cars, so in some events where admin create bike, you dont need license
Because cars are just too many