A question to ****** about "foreach"
#1

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)