File lines are overwriting
#1

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;
}
Reply


Messages In This Thread
File lines are overwriting - by milanosie - 29.02.2012, 09:16
Re: File lines are overwriting - by thimo - 29.02.2012, 09:18
Re: File lines are overwriting - by Stigg - 29.02.2012, 09:21
Re: File lines are overwriting - by T0pAz - 29.02.2012, 09:21
Re: File lines are overwriting - by milanosie - 29.02.2012, 09:22
Re: File lines are overwriting - by thimo - 29.02.2012, 09:26
Re: File lines are overwriting - by iPLEOMAX - 29.02.2012, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)