Gettime problem
#3

It worked but not as i wanted to

In reports.txt it saved together in a line not in a new line earlier when i didn't use gettime it always saved on a new line like this

{0000}[NEW REPORT] [09:04:09] {3399FF}Player xxx(0) has reported xxx(0) || 1111111 || for {FF0000}testing3
{0000}[NEW REPORT] [09:04:09] {3399FF}Player xxx(0) has reported xxx(0) || 1111111 || for {FF0000}testing4

but now its all together in one line

this is my reportlog

Код:
forward ReportLog(reportstring[]);
public ReportLog(reportstring[])
{
	new entry[128];
	format(entry,sizeof(entry),"%s\r\n",reportstring);
	new File:rFile;
	rFile = fopen("Reports/Report.txt",io_append);
	fwrite(rFile,entry);
	fclose(rFile);
}
Reply


Messages In This Thread
Gettime problem - by Nabster - 06.03.2015, 02:53
Re: Gettime problem - by X337 - 06.03.2015, 02:58
Re: Gettime problem - by Nabster - 06.03.2015, 03:03
Re: Gettime problem - by X337 - 06.03.2015, 03:07
Re: Gettime problem - by Nabster - 06.03.2015, 03:12

Forum Jump:


Users browsing this thread: 1 Guest(s)