New line.
#1

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);
}
Reply
#2

Nevermind, it does work, sorry guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)