Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Line breaks in chat messages?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Line breaks in chat messages? (Read 1263 times)
Azazel
May 08, 2010, 04:24:33 PM
Oi.
This is probably an easy one. I want to have a server welcome message consisting of several lines of text, but I cannot figure out how to do line breaks. I've tried different variations of <br>. Any ideas?
Ad Bot
Advertisement
Plornt
May 08, 2010, 05:24:03 PM
\n?
Azazel
May 08, 2010, 07:09:23 PM
Quote from: Plornt on May 08, 2010, 05:24:03 PM
\n?
No worky.
Peejster
May 08, 2010, 07:51:32 PM
Space-key abuse?
Chrono
May 09, 2010, 12:01:49 AM
If \n doesn't work, then modify it through the console.
$Pref::Server::WelcomeMessage = "Text" NL "More text";
Kalphiter
May 09, 2010, 12:03:38 AM
Quote from: Chrono on May 09, 2010, 12:01:49 AM
If \n doesn't work,
\n would never work because it's passed as a backslash and an n, never as the single \n character
Marcem
May 09, 2010, 12:17:07 AM
Good to know you are read up on the Torque Engine! \n is the thing I learned to use for new lines in Torque. It usually works, or does it have to be /n?
Chrono
May 09, 2010, 03:45:37 AM
\n
Bauklotz
May 09, 2010, 03:46:34 AM
Guys, listen to Chrono.
\n
in a user input would automatically be expanded to
\\n
, so it wouldn't create a line break, but appear as '\n'.
NINJA:
Not his latest post, but the one below Peejester's.
Chrono
May 09, 2010, 03:47:58 AM
Well this is coding help, so you would figure that they would be doing this in scripts and not user input.
Bauklotz
May 09, 2010, 03:56:08 AM
Quote from: Azazel on May 08, 2010, 04:24:33 PM
server welcome message lines of text, <br>.
Makes you think...
Chrono
May 09, 2010, 03:57:32 AM
Thus my first post in this topic.
Bauklotz
May 09, 2010, 04:03:56 AM
Thus my first post in this topic. Posted because everybody was just ignoring the fact that in user input, expandEscape is automatically called.
Peejster
May 09, 2010, 09:37:12 AM
Quote from: Bauklotz on May 09, 2010, 03:46:34 AM
Peejester
OH GOD DAMN IT.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Line breaks in chat messages?