13.01.2017, 12:44
Hello, I've made simple & basic admin log. It creates a file and writes in it.
Problem:
It is supposed to write in the file and then make a new line, but it's writing everything in same line. I mean, there is no different if I keep that \n or I remove it.
Script:
Problem:
It is supposed to write in the file and then make a new line, but it's writing everything in same line. I mean, there is no different if I keep that \n or I remove it.
Script:
PHP Code:
forward adminLog(logstring[]);
public adminLog(logstring[])
{
new File:hFile;
new entry[256];
format(entry, sizeof(entry), "%s\n",logstring);
hFile = fopen("Logs/admin_log.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}