Problem with file - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with file (
/showthread.php?tid=160992)
Problem with file -
[NWA]Hannes - 18.07.2010
I have this:
http://pastebin.com/WctKQPqB
But when i start filterscript, it says "Command Logger started" as it should.
But when i write a command in the server, it replaces the "Command Logger started" with "[NWA]Hannes typed /test"
Then when i write another command it replaces the "[NWA]Hannes typed /test" row with "[NWA]Hannes typed /test2"
Can anyone help me?
Re: Problem with file -
westre - 18.07.2010
Use append.
Re: Problem with file -
[NWA]Hannes - 18.07.2010
Quote:
Originally Posted by westre
|
You mean so i change the:
pawn Код:
new File:cmdlog = fopen("/logger.txt", io_write);
to
pawn Код:
new File:cmdlog = fopen("/logger.txt", io_append);
Re: Problem with file -
westre - 18.07.2010
Exactly.