Setadmin help
#2

Basically your sscanf line is messed up

pawn Код:
COMMAND:setadminlevel(playerid, params[])
{
    new targetid, level;
    if(!sscanf(params, "ui", targetid, level)) return SendClientMessage(playerid, -1, "USAGE: /setadminlevel [ID] [LEVEL]");
    if(IsPlayerAdmin(playerid))
    {
        pInfo[targetid][Adminlevel] = level;
        // HI YOU MADE SOMEONE ADMIN
    }
    else return SendClientMessage(playerid, -1, "ERROR: You are not permitted to use this command.");
    return 1;
}
Try that, report any errors/problems
Reply


Messages In This Thread
Setadmin help - by NicholasA - 13.04.2013, 09:14
Re: Setadmin help - by Isolated - 13.04.2013, 09:16
Re: Setadmin help - by NicholasA - 13.04.2013, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)