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



foreach for npc - ax1 - 13.08.2016

Can you use foreach for npc? If so then how?


Re: foreach for npc - Misiur - 13.08.2016

pawn Код:
foreach (new bot:Bot) {}
//or
foreach (new bot:NPC) {}
The choice is yours