23.04.2013, 05:36
enum?
Or variables?
So which one is better?
pawn Код:
enum en
{
Enum1,
Enum2,
Enum3,
Enum4
}
new Enums[MAX_PLAYERS][en];
//So later I can use it like this;
Enums[playerid][Enum1]++;
Enums[playerid][Enum2]--;
Enums[playerid][Enum3] = 1;
Enums[playerid][Enum4] = 0;
pawn Код:
new
Var1[MAX_PLAYERS],
Var2[MAX_PLAYERS],
Var3[MAX_PLAYERS],
Var4[MAX_PLAYERS]
;
//So later I can use it like this;
Var1[playerid]++;
Var2[playerid]--;
Var3[playerid] = 1;
Var4[playerid] = 0;