26.03.2014, 09:58
Why can't I use arrays in enums? Such as...
I'm trying to script dynamic factions and want to be able to edit the names of ranks and divisions. So when I make a call in my script, such as the following, it doesn't work.
pawn Код:
enum FacInfo
{
fSName[255],
fType,
fLName[255],
fColour[32],
fRank[12][64],
fDivisonS[8][64],
fDivisonL[8][64],
};
pawn Код:
format(string, sizeof(string), "Faction%dRank1=%s\n",f,FactionInfo[f][fRank[1]]); fwrite(hFile, string);