16.12.2013, 15:28
No. Search.
Let's debug the adminduty command.Try this, and tell me what it says.
Add that little printf thingie above the if(...) code, then the console/server_log.txt will show us what the value of the pAdmin variable is when the command is performed.
Let's debug the adminduty command.Try this, and tell me what it says.
pawn Код:
CMD:adminduty(playerid,params[]) {
printf("ADMINDUTY DEBUG - Level: %d",PInfo[playerid][pAdmin]);
if(PlayerInfo[playerid][pAdmin] < 1 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ADMIN] - You're not a high enough level to use this command!");
//rest of script