Posts: 150
Threads: 5
Joined: Jun 2015
Reputation:
0
If your using that, then there's no need for fseek();
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
I don't see why it doesn't work.
Are you using the windows editor to create the file or WordPad? The Editor does only use \r and depending on the settings it may be read as one whole line. Try to either remove one fread (for testing) or save the file correctly with WordPad.
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
\r should be put before \n, since the text itself is correct that should be the cause.
Posts: 3,324
Threads: 96
Joined: Sep 2013
Why not use just one format and fwrite though
pawn Code:
new File:Hwban = fopen(Line, io_append);
format(iStr, sizeof(iStr), "%s\r\n%s\r\n", PlayerName(User), iReason);
fwrite(Hwban, iStr);
fclose(Hwban);