13.04.2013, 09:16
Basically your sscanf line is messed up
Try that, report any errors/problems
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;
}