29.02.2012, 09:16
So, I am making this log but it only writes on the first line, its overwriting the previous line over and over again, what is wrong?
pawn Код:
forward writecmdlog(text[]);
stock writecmdlog(text[])
{
new File:cmdlog = fopen("realityrp/logs/commands.txt", io_write);
fwrite(cmdlog, text);
fwrite(cmdlog, "\r\n");
fclose(cmdlog);
return 1;
}