Defining a shorter value for an Enum
#1

Um..Well, I use this variable to know which Character a User is Playing in. (MultiCharacter)
pawn Код:
new CurrentCharacter[MAX_PLAYERS];
So, I've to do like this. Example:-
pawn Код:
if(CharacterInfo[playerid][CurrentCharacter[playerid]][Admin] >= 5));
The original 'new' for the above equation is:
pawn Код:
new Character[MAX_PLAYERS][MAX_SLOT][CharacterInfo];
But, you see. This becomes very long. Maybe Defining helps, but I need in this regard. How to Make this shorter?
What I want it to work it like is.
pawn Код:
CharacterInfo[playerid][Admin]
i.e Remove the Character slot, 'SLOT', variable from this eq. Anybody?
Reply


Messages In This Thread
Defining a shorter value for an Enum - by JonathanW - 02.01.2015, 13:33
Re: Defining a shorter value for an Enum - by Facerafter - 02.01.2015, 13:38
Re: Defining a shorter value for an Enum - by JonathanW - 02.01.2015, 13:45
Re: Defining a shorter value for an Enum - by JonathanW - 02.01.2015, 16:50
AW: Defining a shorter value for an Enum - by CutX - 02.01.2015, 22:17
Re: Defining a shorter value for an Enum - by JonathanW - 03.01.2015, 05:13

Forum Jump:


Users browsing this thread: 1 Guest(s)