Sharing commnads...
#1

I totally forgot how to use the || (or operator) to allow let's say admins and donators to share the same command.
Like this:

pawn Код:
if(PlayerData[playerid][AdminLevel] < 1 || PlayerData[playerid][DonorLevel] < 2)return 0;
It always returns 0...
Reply
#2

Nevermind, it's the nor operator:

if(!(left || right))

Therefore: if(!(PlayerData[playerid][AdminLevel] < 1 || PlayerData[playerid][DonorLevel] < 2))return 0;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)