Breaking lines
#1

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)
Reply
#2

\r\n
Reply
#3

wtf are you talking?
you dont save houses in mysql like you save in ini.
Reply
#4

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
Reply
#5

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'
Reply
#6

when its dialog you break lines with \n
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)