check next idcar free - 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: check next idcar free (
/showthread.php?tid=320668)
Know next slot idcar free -
ombre - 24.02.2012
Hi,
If I create a veh with /spawnvehicule, the id car = 1, If I spawn a other veh idcar =2 If I spawn a other veh idcar =3...If I remove the id car = 2. The next spwanvehicule idcar = 2.
My question I need a check (for command) for to know the next slot id car free.
Thanks.
Re : check next idcar free -
ombre - 24.02.2012
nobody?
Re: check next idcar free -
Babul - 24.02.2012
the
CreateVehicle already returns the vehicleid, so you can do
pawn Код:
new NewVehicleID=CreateVehicle(blabla);
and then use it.
Re : check next idcar free -
ombre - 24.02.2012
yes but I know when I have spawn the vehicle, I want before. The future slot free.
Re : check next idcar free -
ombre - 25.02.2012
ok but I search one idea for
https://sampforum.blast.hk/showthread.php?tid=320534