Statement doesnt work
#2

Well, first make the code neater. I don't directly see any issues with the code, but this may solve the issue or confusion you have:

pawn Код:
if(pInfo[playerid][pAdmin] < 3 || pInfo[playerid][pRank] < 4 )//if the player is less than an Admin 3 AND/OR if the player is a rank of less than 4.
{
      SendClientMessage(playerid,COLOR_ADMWHITE, "SERVER: Unknown command.");//Wont work for them.
      return 1;
}
else//Everyone else can...
{
      //What you want Admin 3+ and/or Rank 4+ to be able to do with this command.
      return 1;
}

ALSO: Check to make SURE that when you're testing this, the Admin level IS 3+ and/or the Rank level IS 4+
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: 1 Guest(s)