Arrays in enum - 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: Arrays in enum (
/showthread.php?tid=367338)
Arrays in enum -
krolax - 09.08.2012
Hello,
It's my first post here, sorry for my bad english
I have problem with arrays, when i put
into enum, i have error 001: expected token: "}", but found "["
when i change it to
Код:
pWeapons[13]/*[2]*/,
the pawno compile correctly, please help
Re: Arrays in enum -
iggy1 - 09.08.2012
You cant do that because PAWN only supports up to 3D arrays, your trying to make one that is 4D.
Looks like you need to use a separate array.
EDIT: That may not be whats causing the error, it seems you cannot have a 2d array in an enum.
Re: Arrays in enum -
krolax - 09.08.2012
Okay, thanks a lot