How do I make it in a new line?
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Write something to the file and then go to the next line. Checking for invalid file handle is also important to avoid server crashes.

pawn Код:
LogCmd(event[])
{
    new File:log = fopen(CMD_LOG,io_append);

    if (log) return 0;

    fwrite(log,event);
    fwrite(log,"\r\n");
    fclose(log);
    return 1;
}
This actually gives me a warning :c
EDIT:Oh you fixed it !
Reply


Messages In This Thread
How do I make it in a new line? - by Gotham - 12.10.2016, 15:52
Re: How do I make it in a new line? - by Stinged - 12.10.2016, 15:54
Re: How do I make it in a new line? - by Konstantinos - 12.10.2016, 15:56
Re: How do I make it in a new line? - by Gotham - 12.10.2016, 15:56
Re: How do I make it in a new line? - by Gotham - 12.10.2016, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)