Arrays in enum
#1

Hello,
It's my first post here, sorry for my bad english

I have problem with arrays, when i put

Код:
pWeapons[13][2],
into enum, i have error 001: expected token: "}", but found "["

when i change it to

Код:
pWeapons[13]/*[2]*/,
the pawno compile correctly, please help
Reply
#2

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.
Reply
#3

Okay, thanks a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)