Logical OR || Operator doesn't work properly
#3

!IsPlayerAdmin(playerid) || pInfo[playerid][Admin] == 6

See that thing in red? It is the equality operator, so if left is equal to right (pInfo[playerid][Admin] and 6) it will give a value of true.
What you need is the inequality operator ( != ), which checks if left and right aren't equal.

PS: Read this article about C/++ operators (ignore the C/++ specific things) because Pawn is based on C's syntax.
Reply


Messages In This Thread
Logical OR || Operator doesn't work properly - by MiyuUchiha - 21.05.2018, 12:57
Re: Logical OR || Operator doesn't work properly - by DarkSkull - 21.05.2018, 13:02
Re: Logical OR || Operator doesn't work properly - by 10MIN - 21.05.2018, 13:08
Re: Logical OR || Operator doesn't work properly - by MiyuUchiha - 21.05.2018, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)