Problem with file
#1

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?
Reply
#2

Use append.
pawn Код:
io_append
Reply
#3

Quote:
Originally Posted by westre
Посмотреть сообщение
Use append.
pawn Код:
io_append
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);
Reply
#4

Exactly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)