A question to ****** about "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: A question to ****** about "foreach" (
/showthread.php?tid=311014)
A question to ****** about "foreach" -
iPLEOMAX - 14.01.2012
pawn Код:
public OnFilterScriptInit()
{
new IteratorArray:Example[10]<20>;
Iter_Init(Example);
Iter_Add(Example[1], 91);
foreach(Example[1], idx) {}
printf("ABC123");
return 1;
}
A) As you see: "printf("ABC123");" at the end of all codes, it's supposed to print this in the console. But it doesn't, what am I doing wrong?
B) I only need to initialize a multi dimensional array at compile.. right? not whenever I use it?