New line. - 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)
+--- Thread: New line. (
/showthread.php?tid=596901)
New line. -
Sebz - 24.12.2015
The following code just places the next ban after the first one without going to a new line, what is wrong with my formatting?
Код:
forward BanLog(string[]);
public BanLog(string[])
{
new entry[128];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("/LOGS/bans.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
Re: New line. -
Sebz - 24.12.2015
Nevermind, it does work, sorry guys.