Posts: 547
Threads: 57
Joined: Dec 2010
I was just wondering if it was possible to have a two dimensional array within an enum, something like
pawn Code:
enum info
{
Example[][],
Example2[][]
};
new Stat[MAX_PLAYERS][info]; //Not sure if this line would be right, but that's why I'm asking :P
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Zeex's compiler supports 4d arrays. But, you would need to specify array sizes from the beginning
Posts: 791
Threads: 113
Joined: Aug 2008
Reputation:
0
Most commonly there are really no need for a 4D array. State your intentions and we might figure out a way to work around it.
Posts: 547
Threads: 57
Joined: Dec 2010
An inventory system where the first array would be the slot number and the second array would be the amount number.
pawn Code:
Example[1][5] //That would be in slot 1 and the amount in that slot would be 5, if my explaining isn't good :P
Posts: 547
Threads: 57
Joined: Dec 2010
Alright, I think I understand what I can do now.
Thanks to all of you