function to check SpawnCar1-SpawnCar9 - 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: function to check SpawnCar1-SpawnCar9 (
/showthread.php?tid=534009)
function to check SpawnCar1-SpawnCar9 -
Metharon - 27.08.2014
Hello .. i created 9 cars..
SpawnCar1 = CreateVehicle...
SpawnCar2 = CreateVehicle..
now i'm trying to do to check ALL THE CARS ON THE SERVER
if (IsASpawnCar(carid))
{
return 1; blabla
}
any ideas?..
Re: function to check SpawnCar1-SpawnCar9 -
Thogy - 27.08.2014
pawn Код:
new SpawnCar[2];
SpawnCar[0] = CreateVehicle...
SpawnCar[1] = CreateVehicle...
for(new i; i<sizeof(SpawnCar); i++)
{
if(SpawnCar[i] ...
}