SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Nederlands/Dutch

Reply
 
Thread Tools Display Modes
Old 17/03/2011, 05:27 PM   #1
Biesmen
High-roller
 
Biesmen's Avatar
 
Join Date: May 2009
Location: The Netherlands
Posts: 1,342
Reputation: 119
Default New Line "\n" werkt niet bij Format

Ik heb een probleempje met een nieuwe lijn aanmaken in een format. Om logs, of accounts te maken gebruik ik de gewone 'file' functie van C. Maar hij werkt gewoon niet bij format.

Voorbeeld code:
pawn Code:
format(string, sizeof(string), "%s\n", log);
Die \n wordt volledig genegeerd. Ik heb ook al \r geprobeert.
Biesmen is offline   Reply With Quote
Old 17/03/2011, 05:32 PM   #2
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,824
Reputation: 709
Default Re: New Line "\n" werkt niet bij Format

Heb je dan ook al \r\n geprobeerd?
__________________
If you want help from me, or if you want to contact me, you can send an email to kwarde@mail.com (TIP: For even faster help, add either 'SAMP' or 'SA-MP' in the mail title so that I can read it faster [it'll be moved to a seperate folder])
You can also send a PM or visitors message, but I check my mail more often then these forums!
[FILTERSCRIPT] BugReport: http://forum.sa-mp.com/showthread.php?t=437034
Kwarde is offline   Reply With Quote
Old 17/03/2011, 05:32 PM   #3
Serbish
Gangsta
 
Join Date: Apr 2008
Location: Luxembourg
Posts: 645
Reputation: 30
Default Re: New Line "\n" werkt niet bij Format

pawn Code:
format(string, sizeof(string), "%s\r\n", log);
Serbish is offline   Reply With Quote
Old 17/03/2011, 05:41 PM   #4
Biesmen
High-roller
 
Biesmen's Avatar
 
Join Date: May 2009
Location: The Netherlands
Posts: 1,342
Reputation: 119
Default Re: New Line "\n" werkt niet bij Format

Dat was ik nog vergeten te doen ().
Dankje.
Biesmen is offline   Reply With Quote
Reply

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
xMovie Entertainment (3 vids): "Like a boss" "The rapist" "Jizz in my pants" xMovie Screenshots and Videos 11 27/03/2012 12:10 PM
"E-Speaking werkt niet meer..." Jantjuh Nederlands/Dutch 2 14/02/2011 04:42 PM
Little "format" and "dini" help blackwave Help Archive 3 28/12/2010 11:28 AM
Run time error 17: "Invalid/unsupported P-code file format" Pooh7 Help Archive 0 13/12/2010 08:45 PM
My server will not start because of error 17:"Invalid/unsupported P-code format" Gabe713 Server Support 3 25/04/2009 10:45 AM


All times are GMT. The time now is 05:08 PM.


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