31.12.2014, 00:51
an enum is just a list of constants therefor it can only be 1d
the savest way would be to exclude these variables like
the other way would be to use maths (not recommended because the compiler / server wont case errors if you are out of bounds)
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];