Something new in enums
#1

I've been reading up the wiki, and saw something new:
pawn Код:
enum (<<= 1)
{
    TEAM_NONE,
    TEAM_COP = 1,
    TEAM_ROBBER,
    TEAM_CIV,
    TEAM_CLERK,
    TEAM_DRIVER,
    TEAM_ADMIN
}
, as it stated, you can use a few teams in a variable like this:
pawn Код:
gPlayerTeam[playerid] |= TEAM_COP;
So, my question is, can i add unlimited items like that? Would be nice to store my whole player inventory in one variable
Reply


Messages In This Thread
Something new in enums - by wups - 29.08.2011, 10:27
Re: Something new in enums - by Darnell - 29.08.2011, 10:31
Re: Something new in enums - by wups - 29.08.2011, 10:31
Re: Something new in enums - by Babul - 29.08.2011, 10:46
Re: Something new in enums - by wups - 29.08.2011, 11:24
Re: Something new in enums - by Bakr - 29.08.2011, 11:30
Re: Something new in enums - by wups - 29.08.2011, 11:31
Re: Something new in enums - by Bakr - 29.08.2011, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)