31.12.2014, 14:39
Hello I've started to log what players are doing such as commands, but I've got a problem, then way it logs, it logs it all on one line, but I wanted it so it would be like.
but at the moment it logs like
my logging code is
If you know what's wrong it would be great if you could tell me, Also I have to know what does this mean on the Stock
is that the bit I am logging?
Quote:
Player has joined the server Player has joined the server |
Quote:
Player has joined the server Player has joined the server |
pawn Код:
format(str2, sizeof str2, "[COMMAND][%02d/%02d/%04d %02d:%02d:%02d]: %s(%d): has used /stats", lyear, lmonth, lday, lhour, lminute, lsecond, name, ID);
AllLogs(str2);
pawn Код:
stock AllLogs(event[])
{
new File:log = fopen("Core/Logs/AllLogs.txt", io_append);
fwrite(log, event);
fwrite(log, "\n");
fclose(log);
}
Quote:
fwrite(log, event); |