save reports
#1

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;
}
Reply


Messages In This Thread
save reports - by GeneralAref - 20.12.2015, 13:21
Re: save reports - by StackedPizza - 20.12.2015, 13:36
Re: save reports - by GeneralAref - 20.12.2015, 14:22
Re: save reports - by GeneralAref - 20.12.2015, 14:54
Re: save reports - by StackedPizza - 20.12.2015, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)