\n - newline doesnt work? :S
#1

Code:
public BugLog(string[])
{
	new entry[128];
	new File:hFile;
	hFile = fopen("bug.ini", io_append);
	format(entry, sizeof(entry), "%s\n",string);
	fwrite(hFile, entry);
	fclose(hFile);
}
it should work right?...but it doesnt work properly :S
it doesnt DO NEWLINE(thingie) :S

it saves everything in 1 line :S but i want every time it writes...to write it in a new line :S

this is WHAT should happen :S
Code:
			format(string, sizeof(string), "|%s| BUG: %s ))", sendername ,result);
			BugLog(string);
sry...last 2 hours my english is kinda shitty because i am nervous about smthing :S
Reply
#2

try \r\n
Reply
#3

still the same :S

but wtf -.-' in .log writes in 1 LINE but when i copy it here then it is like this :O
|Baff_Bloomer| BUG: aaasdasda ))
|Baff_Bloomer| BUG: ishauidas ))
|Baff_Bloomer| BUG: sjadjsjdja ))

Reply
#4

Yes , because there's a square ( don't use notepad , use wordpad )
Reply
#5

Notepad indeed doesn't support that new lining.
I personally use Notepad++ and it works great (:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)