2D Array in enum?
#2

an enum is just a list of constants therefor it can only be 1d

the savest way would be to exclude these variables like
pawn Код:
enum fInfo
{
    fLeader[MAX_PLAYER_NAME],
    fMembers
}
new FactionInfo[MAX_FACTIONS][fInfo];
new FractionRank[MAX_FACTIONS][10][24];

enum fDept
{
    fDeptName[24],
    fDeptTag[12]
}
new FractionDept[MAX_FACTIONS][4][fDept];
the other way would be to use maths (not recommended because the compiler / server wont case errors if you are out of bounds)
Reply


Messages In This Thread
2D Array in enum? - by Facerafter - 30.12.2014, 23:51
AW: 2D Array in enum? - by Nero_3D - 31.12.2014, 00:51

Forum Jump:


Users browsing this thread: 1 Guest(s)