SA-MP Forums Archive
How to use for? - 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: How to use for? (/showthread.php?tid=200812)



How to use for? - ajwar - 19.12.2010

Hi, how should i use "for" if i wan't to save all the vehicles on gamemodeexit?


Re: How to use for? - WillyP - 19.12.2010

pawn Код:
for(new c; c < MAX_VEHICLES; c++)
    {
             SaveCar(c);//Or your function
    }