2D array help
#1

pawn Код:
enum aA {
2darray[32][128] //example.
};

static 2DARRAY[256][aA];

main() // example 3rd cell in first dimension.
{
    new aString[128];
    new index;
    while(index < 32)
    {
        // Nvm loading from file before printing or actually formating string(array)
        // In this case will be blank but it doesn't matter I just wanna now
        // If this will print actual string.
        format(aString, sizeof aString, "%s", 2DARRAY[3][2darray[index]]);
        printf(aString);
        ++index;
    }
}
If not please give me example.

2DARRAY[3][2darray][index] or 2dARRAY[3][2darray[index]] or ?
Reply
#2

I Believe you cant have 2D array in enum, as enum is 2D array itself in basic
Reply
#3

That's right^.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)