How to put in enum number of arrays + strings?
#1

I would like to ask, I'm trying to make 6 wanted reasons for wanted level.
Instead of doing:
Код:
enum pInfo
{
    WantedReason1[24],
    WantedReason2[24],
    WantedReason3[24],
    WantedReason4[24],
    WantedReason5[24],
    WantedReason6[24],
};
I want:
Код:
enum pInfo
{
    WantedReason[6][24],
};
So later on I can do this for example:
Код:
for(new i = 0; i < 5; i++)
{
    INI_String("WantedReason",PlayerInfo[playerid][WantedReason][i], 24);
}
How can i do this to work? When i complie it like that, its working untill the variable in the enum WantedReason and everything after the variable is in error. so im asuming this is incorrect way to do it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)