Is <foreach> can only be used for MAX_PLAYERS ? -
Juvanii - 09.07.2014
Can i use
<foreach> for looping the
MAX_VEHICLES?
Note: I don't know if this thread should be here! but i don't see that it's related to Scripting Help Section cuz it's just a question about an "include".
Anyway move it if so!
Re: Is <foreach> can only be used for MAX_PLAYERS ? -
Konstantinos - 09.07.2014
No, foreach can be used for many things (iterator about admins instead of looping through the players and checking their level etc).
I use foreach for the vehicles but if I'm not mistaken, it'll only work for one mode. For example, if you create vehicles to gamemode and filterscripts, it won't work.