03.06.2014, 22:21
There are many unneded 'if' with the same clause repeated in this script, check out:
Then, you're probably with an higher admin level then 3, but this 'if' won't let you pass:
Correct it with '>= 3'. And also correct the rest of the code!
pawn Код:
if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_ORANGE, "** You are not logged in, please login first.");
if(PlayerAcc[playerid][Admin] == 3)
{
if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_RED, "** You are not logged in, please login first.");
if(PlayerAcc[playerid][Admin] == 0) return SendClientMessage(playerid, -1,""orange"** Sorry, admins level 3+ can use that command!");
if(PlayerAcc[playerid][Admin] >= 3)
pawn Код:
if(PlayerAcc[playerid][Admin] == 3)
{