Help with operators
#1

Is possible to make something like

PHP код:
if(g_PlayerFlags[i][intTeam] & _:(Cop SWAT FBI Army Navy))
{
    
// do something

I want to evit this method

PHP код:
g_PlayerFlags[i][intTeam] == Cop || g_PlayerFlags[i][intTeam] == SWAT..... 
Reply
#2

you could use a switch statement or
bit flags. both covered in the forums and on the wiki.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)