save reports
#2

Try to put this on the top:
Код:
forward StoreReport(playerid,reported,reason[]);
Then put this somewhere:
Код:
public StoreReport(playerid,reported,reason[])
{
     new hour,minute,second;
	 gettime(hour,minute,second);
	 for(new i = 0; i < MAX_REPORTS_STORE-1; i++)
	 Reports[i] = Reports[i+1];
	 format(string,sizeof(string),"%d:%d:%d - %s(ID: %d) Has Reported %s(ID: %d) |{FF0000} REASON: %s ",hour,minute,second,GetName(playerid),playerid,GetName(reported),reported,reason);
	 Reports[MAX_REPORTS_STORE-1] = string;
}
Then put this in the command:
Код:
	 WriteToLog(string,"Reports");
	 CallLocalFunction("StoreReport", "dds",playerid, id, reason);
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)