OR (||) and (&&) problem
#1

Hello

I have been testing something and found out something wierd

If I use this:
PHP код:
if(PlayerInfo[playerid][AdminLevel] < && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You arent admin"); 
I Have to be just LEVEL 5 "OR" RCON ADMIN

If I use this:
PHP код:
if(PlayerInfo[playerid][AdminLevel] < || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You arent admin"); 
I Have to be just LEVEL 5 "AND" RCON ADMIN

Isnt that wierd?


And on the wiki:



&&------------- and ------------- if (Left && Right)
||-------------- or ------------- if (Left || Right)
Reply


Messages In This Thread
OR (||) and (&&) problem - by kalanerik99 - 15.11.2015, 11:10
Re: OR (||) and (&&) problem - by IceBilizard - 15.11.2015, 11:18
Re: OR (||) and (&&) problem - by kalanerik99 - 15.11.2015, 11:21
Re: OR (||) and (&&) problem - by SecretBoss - 15.11.2015, 11:22
Re: OR (||) and (&&) problem - by IstuntmanI - 15.11.2015, 11:23
Re: OR (||) and (&&) problem - by kalanerik99 - 15.11.2015, 11:24
Re: OR (||) and (&&) problem - by thefirestate - 15.11.2015, 11:38
Re: OR (||) and (&&) problem - by kalanerik99 - 15.11.2015, 11:40
Re: OR (||) and (&&) problem - by thefirestate - 15.11.2015, 11:42
Re: OR (||) and (&&) problem - by kalanerik99 - 15.11.2015, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)