Set an whole enum array
#1

Hey People!

I wanted to set an whole array with enum to one value, but i don't know how to.
The enum in the eample is little, don't worry about it.
It should be like:

Код:
enum fInfo
{
	admin,
 	dialog,
 	login,
};
new bool:FreezeInfo[MAX_PLAYERS][fInfo];

for(new i=0;i<sizeof(fInfo);i++)
{
    FreezeInfo[playerid][i]=false;
}
Reply


Messages In This Thread
Set an whole enum array - by Manuel1948 - 01.04.2011, 21:31
Re: Set an whole enum array - by s0nic - 02.04.2011, 04:17

Forum Jump:


Users browsing this thread: 1 Guest(s)