06.03.2015, 03:03
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
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); }