20.12.2015, 13:21
this is my report command. how to save reports in .ini file?
Код:
CMD:report(playerid, params[]) { new id; new reason[128]; if(sscanf(params, "us[128]", id, reason)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /report [Id] [Reason]"); new string[150], sender[MAX_PLAYER_NAME], receiver[MAX_PLAYER_NAME]; GetPlayerName(playerid, sender, sizeof(sender)); GetPlayerName(id, receiver, sizeof(receiver)); format(string, sizeof(string), "%s(%d) has reported %s(%d).Reason: %s", sender, playerid, receiver, id, reason); SendMessageToAdmins(string); SendClientMessage(playerid, COLOR_GREEN, "Your report has been sent."); return 1; }