Breaking lines - 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)
+--- Thread: Breaking lines (
/showthread.php?tid=655783)
Breaking lines -
div - 29.06.2018
Hello, I want to retrieve data from MySQLin a breaked form...
Like there will be a house system
Multiple houses
HOUSE 1
HOUSE 2
The problem is, if i retrieve data, that would be like
House 1House2
How to break lines??(Haven't started yet)
Re: Breaking lines -
Dignity - 29.06.2018
\r\n
Re: Breaking lines -
CodeStyle175 - 29.06.2018
wtf are you talking?
you dont save houses in mysql like you save in ini.
Re: Breaking lines -
Banditul18 - 29.06.2018
Quote:
Originally Posted by CodeStyle175
wtf are you talking?
you dont save houses in mysql like you save in ini.
|
Actually old gamemodes that run mysql r7 or older versions still have this kind of systems with sscanf splits lol
ON: Houses are already split via rows
Re: Breaking lines -
div - 29.06.2018
I'll save house names, house price, house title in a table..
Like i use /houseSpawn command, it will show in a messed up way, like a DIALOG BOX
"House 1 House 2" How can i break line here? particularly, how to use the break; function here to make it look like
"house 1
house 2"
While i retrieve it from MySQL by looping, where hOwner = '%s'
Re: Breaking lines -
CodeStyle175 - 29.06.2018
when its dialog you break lines with \n