12.02.2012, 21:31
Hey!
Is there any way to loop through an array that has items of an enum?
I ask it because using
when a player connects is more complicated if you have much more enum items.
Thanks
Nonameman
Is there any way to loop through an array that has items of an enum?
pawn Код:
enum PlayerInfo { deaths, fstyle, kicks, kills, money, muted, mutes, rank, respect, score, skin };
new g_PlayerInfo[MAX_PLAYERS][PlayerInfo];
pawn Код:
g_PlayerInfo[playerid][deaths] = 0;
g_PlayerInfo[playerid][fstyle] = 0;
g_PlayerInfo[playerid][kicks] = 0;
...
Thanks
Nonameman