07.10.2014, 14:06
Try this, the variable type was wrong:
Код:
CMD:makeadmin(playerid, params[]) { new string[256], id, level; if(pInfo[playerid][Admin] >= 1337) if(sscanf(params,"di",id, level)) return SendClientMessage(playerid, YELLOW, "[CMD] [/makeadmin] [id] [lvl]"); { format(string, sizeof(string), "{FF0000}[admin] you have made {FFFFFF}%s(%d){FF0000} admin level{FFFFFF} %d",GetName(id),id,level); SendClientMessage(playerid, RED, string); pInfo[id][Admin] = level; format(string, sizeof(string), "{FF0000}(( [admin]{FFFFFF} %s {FF0000}has made{FFFFFF} %s {FF0000}an administrator! Congratulations! ))",GetName(playerid), GetName(id)); SendClientMessageToAll(RED, string); return 1; } }