My admin log
#1

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:
PHP Code:
forward adminLog(logstring[]);
public 
adminLog(logstring[])
{
    new 
File:hFile;
    new 
entry[256];
    
format(entrysizeof(entry), "%s\n",logstring);
    
hFile fopen("Logs/admin_log.log"io_append);
    
fwrite(hFileentry);
    
fclose(hFile);

Reply


Messages In This Thread
My admin log - by Ahmed21 - 13.01.2017, 12:44
Re: My admin log - by Lordzy - 13.01.2017, 12:57
Re: My admin log - by Ahmed21 - 13.01.2017, 12:59

Forum Jump:


Users browsing this thread: 1 Guest(s)