Home   Help Search Login Register  

Author Topic: How to Add Another Line of Text?  (Read 1366 times)

0 Members and 1 Guest are viewing this topic.

Muzzle Flash

  • Guest
How to Add Another Line of Text?
« on: 06 Mar 2005, 22:01:16 »
Newbie here!  I have messed with the OFP editor for a couple of years and I am learning slowly. The question I have is, when I use triggers to produce text on the screen, I don't know how to add a second line of text, all I get is one huge line of text across the screen.  I though by adding a semi-colon would do it but it didn't, if anyone here can help me, that would be appreciated.
« Last Edit: 06 Mar 2005, 22:01:37 by Muzzle Flash »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:How to Add Another Line of Text?
« Reply #1 on: 06 Mar 2005, 22:07:40 »
Try /n  or is it \n

One of those anyway.


Planck
I know a little about a lot, and a lot about a little.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:How to Add Another Line of Text?
« Reply #2 on: 06 Mar 2005, 22:09:45 »
..."This is the first line.\nThis is the second line."

the \n should do it
if not, try /n

Edit:
god, Plank. beat me while i was postin
« Last Edit: 06 Mar 2005, 22:11:23 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Muzzle Flash

  • Guest
Re:How to Add Another Line of Text?
« Reply #3 on: 06 Mar 2005, 22:11:30 »
Awsome, thanks I will try it, I assume the N means next, lol.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:How to Add Another Line of Text?
« Reply #4 on: 06 Mar 2005, 22:13:18 »
I think it means.....newline


Planck
I know a little about a lot, and a lot about a little.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:How to Add Another Line of Text?
« Reply #5 on: 06 Mar 2005, 22:20:37 »
Does anyone know if any of the other escape commands works in OFP. Like \t?

:beat: *Gets Shot* :beat:

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:How to Add Another Line of Text?
« Reply #6 on: 06 Mar 2005, 22:24:13 »
No idea...........what does \t do?

Why don't you experiment for us and report back here sharpish?


Planck
I know a little about a lot, and a lot about a little.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:How to Add Another Line of Text?
« Reply #7 on: 06 Mar 2005, 22:37:59 »
Nah, too lazy to boot up OFP. ;D

\t = tab

In C++ anyway.

:beat: *Gets Shot* :beat:

Acecool

  • Guest
Re:How to Add Another Line of Text?
« Reply #8 on: 07 Mar 2005, 10:29:54 »
\r\n = windows newline - which is why when you press enter it takes 2 bytes - or 2 characters if you see a textbox which has "You have X characters left..."

\n = newline

Just use \n..