If ||
#2

Quote:

if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_CIA || gTeam[playerid] == TEAM_FBI && pData[playerid][Copban] != 0)
{
SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]{FFFFFF} You are banned from using the cop classuse /unbanme to get unbanned.");
return 0;
}

Yes, || means OR.
Have you tried,
Код:
    if((gTeam[playerid] == TEAM_COP) || (gTeam[playerid] == TEAM_CIA) || (gTeam[playerid] == TEAM_FBI) &&  (pData[playerid][Copban]) != 0)
    {
	    SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]{FFFFFF} You are banned from using the cop classuse /unbanme to get unbanned.");
	    return 0;
    }
(I'm not on my PC, correct me if I'm wrong )
Reply


Messages In This Thread
If || - by yvoms - 03.01.2016, 00:56
Re: If || - by Godey - 03.01.2016, 01:04
Re: If || - by AndySedeyn - 03.01.2016, 01:08
Re: If || - by SickAttack - 03.01.2016, 01:11
Re: If || - by Karan007 - 03.01.2016, 06:47
Re: If || - by yvoms - 03.01.2016, 12:20
Re: If || - by AbyssMorgan - 03.01.2016, 12:24
Re: If || - by yvoms - 03.01.2016, 17:40
Re: If || - by SickAttack - 03.01.2016, 23:34

Forum Jump:


Users browsing this thread: 1 Guest(s)