Which is better? Enum or variables.
#1

enum?
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;
Or variables?
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;
So which one is better?
Reply


Messages In This Thread
Which is better? Enum or variables. - by newbienoob - 23.04.2013, 05:36
Re: Which is better? Enum or variables. - by Vince - 23.04.2013, 05:41
Re: Which is better? Enum or variables. - by newbienoob - 23.04.2013, 05:50
Re: Which is better? Enum or variables. - by DaTa[X] - 23.04.2013, 06:04
Re: Which is better? Enum or variables. - by Knappen - 23.04.2013, 06:05
Re: Which is better? Enum or variables. - by Scenario - 23.04.2013, 06:47
Re: Which is better? Enum or variables. - by Emmet_ - 23.04.2013, 10:11
Re: Which is better? Enum or variables. - by newbienoob - 23.04.2013, 10:20
Re: Which is better? Enum or variables. - by iggy1 - 23.04.2013, 11:08
Re: Which is better? Enum or variables. - by Emmet_ - 23.04.2013, 11:20

Forum Jump:


Users browsing this thread: 1 Guest(s)