13.01.2014, 20:13
Hi, in mode I did CMD: unban via INI and I have ERROR with organizations which I can not help how I fixed it?
Код:
CMD:unban(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 3) { new PlayerFile[50],String[128]; if(sscanf(params, "u[50]",PlayerFile)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /unban <account>"); format(PlayerFile, sizeof(PlayerFile), PATH, params); if (!INI_Exists(PlayerFile)) return SendClientMessage(playerid, COLOR_RED, "ERROR: Player is not registered."); if (INI_WriteInt(PlayerFile, "Banned") == 0) return SendClientMessage(playerid, COLOR_RED, "ERROR: Account is not marked as banned, unable to proceed with unbanning."); INI_WriteInt(PlayerFile, "Banned", 0); format(String, sizeof(String), "AdminCmd:If You Know '%s' Tell Him That He/She Has been unbanned By An Admin..", params); SendClientMessage(playerid, COLOR_GREEN, String); format(String, sizeof(String), "Admin %s, (ID:%d) has unbanned Account: %s", params); SendClientMessageToAdmins(String); }else { return 0; } return 1; }