SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 08/10/2009, 05:34 PM   #1
Baff
Huge Clucker
 
Baff's Avatar
 
Join Date: Jun 2008
Posts: 242
Reputation: 1
Default \n - newline doesnt work? :S

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
__________________
Baff is offline  
Old 08/10/2009, 05:41 PM   #2
noahg
Little Clucker
 
Join Date: Oct 2009
Posts: 22
Reputation: 0
Default Re: \n - newline doesnt work? :S

try \r\n
noahg is offline  
Old 08/10/2009, 06:14 PM   #3
Baff
Huge Clucker
 
Baff's Avatar
 
Join Date: Jun 2008
Posts: 242
Reputation: 1
Default Re: \n - newline doesnt work? :S

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 ))

__________________
Baff is offline  
Old 08/10/2009, 06:17 PM   #4
UsaBoy91
Huge Clucker
 
Join Date: Jun 2008
Posts: 260
Reputation: 5
Default Re: \n - newline doesnt work? :S

Yes , because there's a square ( don't use notepad , use wordpad )
UsaBoy91 is offline  
Old 08/10/2009, 06:21 PM   #5
woot
Gangsta
 
Join Date: Jun 2007
Posts: 785
Reputation: 173
Default Re: \n - newline doesnt work? :S

Notepad indeed doesn't support that new lining.
I personally use Notepad++ and it works great (:
__________________
woop
woot is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why this doesnt work??? hvampire Help Archive 4 07/02/2010 12:56 AM
SA-MP doesnt work SoadFann Client Support 0 28/12/2009 03:33 PM
PM log doesnt work jonybomb Help Archive 2 26/07/2009 08:35 PM
I tried anything? but it doesnt work [BaRt] Client Support 8 25/06/2009 08:24 PM
Still Doesnt Work HELP! StrickenKid Help Archive 3 27/02/2009 05:08 AM


All times are GMT. The time now is 02:15 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.