03.01.2016, 23:34
Quote:
So if im correct if(pData[playerid][Copban] automaticly fetches the value?
|
What's 0 is false, what's not 0 is true.
And like I said, there's ABSOLUTELY no need for you to validate their class whatsoever if a player is not cop banned. Meaning, go with any of the following:
pawn Код:
if(pData[playerid][Copban])
{
if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_CIA || gTeam[playerid] == TEAM_FBI)
{
}
}
pawn Код:
if((pData[playerid][Copban]) && (gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_CIA || gTeam[playerid] == TEAM_FBI))
{
}
Example:
pawn Код:
if((2 == 2 || 3 == 4) && (5 == 5))