02.11.2017, 16:03
Код:
CMD:unban(playerid, params[]) { new targetname[24], filestring[79]; if(sscanf(params, "s[24]", targetname)) return SendClientMessage(playerid, TOMATO, "[USAGE]: {FFFFFF}/unban [Player's Name]"); format(filestring, sizeof(filestring), "/Users/%s.ini", targetname); if(!fexist(filestring)) return SendClientMessage(playerid, RED, "[ERROR]: {FFFFFF}Player name not found in database."); else { new INI: File = INI_Open(UserPath(filestring)); INI_SetTag(File, "data"); INI_WriteInt(File, "Banned", 0); INI_Close(File); new done[128]; format(done, sizeof(done), "[UNBAN]: {FFFFFF}You have unbanned the account %s", targetname); SendClientMessage(playerid,GREEN , done); } return 1; }
Код:
error 035: argument type mismatch (argument 1)