10.03.2010, 21:15
You should use the || which means or, so the old code you have put in was:
It should be changed to ( Also even though you said don't say anything about your code, I have to for the protection ):
About the paranethises words I've said, in math and so as PAWN the structures are still the same.
> - Left is greater than right
< - Left is less than right
So re-read your statement: If(ThePlayer'sAdminLevel is greater than 5). That will mean if the player is higher than the lead admin can't kick them. So that will lead other admins to kick the high level admin, change > to <
Код:
else if (AccountInfo[id][AdminLevel] > 5) SendClientMessage(playerid, COLOR_RED, "Error ~ You cannot kick the highest level admin");
Код:
else if (AccountInfo[id][AdminLevel] > 5 || IsPlayerAdmin(id)) SendClientMessage(playerid, COLOR_RED, "Error ~ You cannot kick the highest level admin");
> - Left is greater than right
< - Left is less than right
So re-read your statement: If(ThePlayer'sAdminLevel is greater than 5). That will mean if the player is higher than the lead admin can't kick them. So that will lead other admins to kick the high level admin, change > to <