Enum Error.
#1

I get an error message and i dont know how to fix. I searched about it little bit but still not get it.
error 001: expected token: "}", but found "["

enum eninit { SQLID, enname[48], enid, entext[10][24] };
new enarr[MAX_ENARR][eninit];

If it is because of arr dimension count, i tried to use zeus's compile patch. But still i get the error.
What can i do about to fix it?
Reply
#2

In Pawn...Arrays are limited to 3 Dimensions.

If you have entext[10][24]..then that would be:

PHP код:
enarr[MAX_ENARR][eninit][10][24
And that is too much for pawn
Reply
#3

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
In Pawn...Arrays are limited to 3 Dimensions.

If you have entext[10][24]..then that would be:

PHP код:
enarr[MAX_ENARR][eninit][10][24
And that is too much for pawn
I see. That was the reason of my problem.
Alright than; new enarr_entext[MAX_ENARR][10][24];
Thank you very much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)