Statement doesnt work
#1

Hello,

I've been trying to make a command such as /setrank [playerid] [policeranklevel] available for both Admin level 3 and a Police Rank level 4. the problem is that unless you are both Admin level 3 and Police Rank 4 you are not able to set someone's rank.

What i want is, you dont have to be a level 3 admin to set someone rank, you have to be either both or one of them.

Here is what i tried.

pawn Код:
if(pInfo[playerid][pAdmin] < 3 || pInfo[playerid][pRank] < 4 ) return SendClientMessage(playerid,COLOR_ADMWHITE, "SERVER: Unknown command.");
Any help appreciated.
Reply


Messages In This Thread
Statement doesnt work - by ZBits - 20.01.2014, 14:12
Re: Statement doesnt work - by jakejohnsonusa - 20.01.2014, 14:33
Re: Statement doesnt work - by Hansrutger - 20.01.2014, 14:37
Re: Statement doesnt work - by ZBits - 20.01.2014, 14:59
Re: Statement doesnt work - by FallweN - 20.01.2014, 15:00
Re: Statement doesnt work - by ZBits - 20.01.2014, 15:08
Re: Statement doesnt work - by ZBits - 20.01.2014, 15:22
Re: Statement doesnt work - by FallweN - 20.01.2014, 15:33

Forum Jump:


Users browsing this thread: 3 Guest(s)