10.04.2014, 10:32
Hello, I've made a MAPPER Log for each mapping command ingame, as someone removed everything. (admin probarly).
Now, I had a backup so it doesnt matter.
Now I want to make a log system to catch such a children in the future.
I've made a Map saving log system.
And it is working.
But, it isnt starting a new line like I asked, for each log.
For ban it is starting a new line.
But why not for Mapping log?
Now, I had a backup so it doesnt matter.
Now I want to make a log system to catch such a children in the future.
I've made a Map saving log system.
And it is working.
But, it isnt starting a new line like I asked, for each log.
For ban it is starting a new line.
But why not for Mapping log?
pawn Код:
public BanLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",string); // This one working perfectly. :)
new File:hFile;
hFile = fopen("ban.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
public MapLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",string); // This one WONT start a NEW LINE
new File:hFile;
hFile = fopen("map.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}