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

Quote:
Originally Posted by Younes44
Посмотреть сообщение
Can you Guys Give Link About Best Admin Cmds and vip too pls
No. Search.

Quote:
Originally Posted by Kyance
Посмотреть сообщение
I suppose that this is what you need?

pawn Код:
- snip -
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)