SA-MP Forums Archive
foreach - 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: foreach (/showthread.php?tid=611448)



foreach - Micko123 - 06.07.2016

PHP код:
for(new 0sizeof(autosalon); i++) 
How can i write that using foreach??


Re: foreach - AbyssMorgan - 06.07.2016

nohow


Re: foreach - Micko123 - 06.07.2016

What


Re: foreach - AbyssMorgan - 06.07.2016

foreach loop is for player / npc


Re: foreach - Micko123 - 06.07.2016

oh okay then thank you


Re: foreach - SyS - 06.07.2016

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
foreach loop is for player / npc
who told you that?Foreach can be used for other loops too by making your own itterators.