SA-MP Forums Archive
Enum Error. - 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: Enum Error. (/showthread.php?tid=618607)



Enum Error. - godless_phoenix - 08.10.2016

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?


Re: Enum Error. - Kaliber - 08.10.2016

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


Re: Enum Error. - godless_phoenix - 08.10.2016

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.