Help With Format - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help With Format (
/showthread.php?tid=196214)
Help With Format -
[WF]Demon - 05.12.2010
Well im trying to make it so when i do for example
Код:
format(string1,sizeof(string1),"Test\r\n",etc);
that i can add another \n to the end and it will print it in the text file? like i have a code that formats a string and sends it to a txt file but im also using PHP for it and i need it to print a \n in the txt file at the end of a line, is there any way to do this?
Another Example I Have It Like This in the text file...
Код:
[19:31:6]Connection: [FF].ZombieMan.=[G]= Connected
[19:31:9]Connection: [FF]TheKid.=[G]= Connected
but i need it like this in the text file
Код:
[19:31:6]Connection: [FF].ZombieMan.=[G]= Connected\n
[19:31:9]Connection: [FF]TheKid.=[G]= Connected\n
Thanks, [FF]Cody_Beer
Re: Help With Format -
Retardedwolf - 05.12.2010
pawn Код:
format ( string1, sizeof ( string1 ), "Test\r%s", "\n" );
^ Not tested;