if(PlayerInfo[playerid][pAdmin] < 1 || !IsPlayerAdmin(playerid)) ....
#6

Quote:
Originally Posted by Jstylezzz
Посмотреть сообщение
No. Search.



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
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.
Sorry for the(possibly) late answer..
[19:01:08] Incoming connection: 127.0.0.1:58224
[19:01:08] [join] Kyance has joined the server (0:127.0.0.1)
[19:01:17] ADMINDUTY DEBUG - Level: 7
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)