30.04.2017, 19:22
The simplest solution would be
instead of
This will compile but it will crash the server (or not write the line).
You open the file with mode io_read, but still attempt to write to it. Use io_readwrite.
Код:
valstr(buf, strval(buf) + 1); fwrite(handle, buf);
Код:
fwrite(handle, strval(buf) + 1);
You open the file with mode io_read, but still attempt to write to it. Use io_readwrite.