25.01.2016, 15:49
Alright so the problem is quite simple, when I restart the server, new logs are being created. Meaning that old file gets deleted and it starts creating a new one for some reason
This is the code
This is the code
PHP код:
public TestLog(LogString[]) {
new entry[128],Year, Month, Day, Hour, Minute, Second;
new File:SomeLogFile= fopen("Logs/TestLog.log",io_append);
getdate(Year, Month, Day);
gettime(Hour, Minute, Second);
format(entry, sizeof(entry), "\r\n[%02d/%02d/%d][%02d:%02d:%02d]%s",Day,Month,Year, Hour, Minute, Second,LogString);
fwrite(SomeLogFile,entry);
fclose(SomeLogFile);
return true;
}