Enums
#1

Why can't I use arrays in enums? Such as...

pawn Код:
enum FacInfo
{
    fSName[255],
    fType,
    fLName[255],
    fColour[32],
    fRank[12][64],
    fDivisonS[8][64],
    fDivisonL[8][64],
};
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 Код:
format(string, sizeof(string), "Faction%dRank1=%s\n",f,FactionInfo[f][fRank[1]]); fwrite(hFile, string);
Reply


Messages In This Thread
Enums - by DLR - 26.03.2014, 09:58
Re: Enums - by RenSoprano - 26.03.2014, 10:03
Re: Enums - by DLR - 26.03.2014, 10:09
Re: Enums - by iZN - 26.03.2014, 10:32
Re: Enums - by DLR - 26.03.2014, 11:02

Forum Jump:


Users browsing this thread: 2 Guest(s)