If ||
#1

Код:
    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;
    }
|| = Or, right?

On compiling i dont get any error however ingame i get the message You are banned from using the cop class use /unbanme to get unbanned while the value in the database is 0,
only appears to occur for the Team_cop and Team_Cia
the other one works

Does || not work in a if function?
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)