Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Help with PAMSG
Help with PAMSG [message #248659] Wed, 07 March 2007 16:28 Go to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
How do you get it to display a second line of text for example:
________________
|...Line 1 of Text...|
|...Line 2 of Text...|
|AAAAAAAAAaAAA|
|aAaA{[OK]}AAaaA|
|______________ |

Thats supposed to be the message box, if you didn't guess.


Re: Help with PAMSG [message #248663 is a reply to message #248659] Wed, 07 March 2007 16:53 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
I don't think there is a way. One way to do it it to use spaces on the first line so the text after it goes on the second one.
Re: Help with PAMSG [message #248664 is a reply to message #248659] Wed, 07 March 2007 17:06 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
doesn't escaping a newline work?
Re: Help with PAMSG [message #248665 is a reply to message #248664] Wed, 07 March 2007 17:07 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
What do you mean by "escaping"

Re: Help with PAMSG [message #248672 is a reply to message #248659] Wed, 07 March 2007 18:20 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
u mean in a exe

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Help with PAMSG [message #248673 is a reply to message #248672] Wed, 07 March 2007 18:26 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
It automatically wraps around, but with the resolution I have the game it it will display an error message before it wraps the text (error because of to many characters).

Re: Help with PAMSG [message #248674 is a reply to message #248659] Wed, 07 March 2007 18:29 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
I think he meant /n.

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Help with PAMSG [message #248676 is a reply to message #248674] Wed, 07 March 2007 18:31 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Well I already have solved the problem so no more help needed.

Re: Help with PAMSG [message #248715 is a reply to message #248659] Thu, 08 March 2007 01:28 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
And the thing you done was? Or is it a 'renegade forums secret'?

The reason i'm asking this is because others may want the same effect but if you don't tell them now they'll just create another topic.
Re: Help with PAMSG [message #248717 is a reply to message #248659] Thu, 08 March 2007 02:29 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
Using a \n works in msg and ppage, so it might work here too.

Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: Help with PAMSG [message #248738 is a reply to message #248715] Thu, 08 March 2007 07:48 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Merovingian wrote on Thu, 08 March 2007 01:28

And the thing you done was? Or is it a 'renegade forums secret'?

The reason i'm asking this is because others may want the same effect but if you don't tell them now they'll just create another topic.

It simply wrapped around when I had enough text, but only one word, even one more character and it would have displayed an [null] message in the box. If my resolution was set to 600 x 480 I'm sure it would have wrapped around 3 time.

But its nice to know that /n does the same function as hitting the enter button.


Re: Help with PAMSG [message #248751 is a reply to message #248659] Thu, 08 March 2007 10:50 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
escaping is programmer talk. it means you put a "\" before a charater.
Re: Help with PAMSG [message #248753 is a reply to message #248659] Thu, 08 March 2007 11:12 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Placing a newline char \n does work in pamsg/msg/amsg and all the others. But note that it doesn't work in FDS console or in IRC
or everywhere where you have to press return to send the command.
\n doesn't work there. It only works in programms when you compile it. Then the \n gets translated into newline and Renegade can handle it. So it would work in scripts.dll or bots like brenbot,
which are sending commands direct way to the FDS.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: Help with PAMSG [message #248774 is a reply to message #248659] Thu, 08 March 2007 13:47 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
i thought he was scripting Huh
Re: Help with PAMSG [message #248775 is a reply to message #248774] Thu, 08 March 2007 13:54 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
I was.

Re: Help with PAMSG [message #368061 is a reply to message #248775] Tue, 20 January 2009 07:49 Go to previous messageGo to next message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
Very old topic, but what script to use for display text in the message box?
Re: Help with PAMSG [message #368066 is a reply to message #248659] Tue, 20 January 2009 08:21 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
I know how to display the Wrong TEam PCT error message lol
Re: Help with PAMSG [message #368068 is a reply to message #368066] Tue, 20 January 2009 08:34 Go to previous message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
ATM i use "JFW_Message_Send_Death", this works fine and displays the Kill-message.

BUT "JFW_Message_Send_Custom_Team" seems to have a bug and displays not the message (e.g. "...under attack"), but the numeral message, what is used for the event! (like "8011")...

???

[Updated on: Tue, 20 January 2009 08:51]

Report message to a moderator

Previous Topic: Crate
Next Topic: Successful purchase sound...
Goto Forum:
  


Current Time: Thu Nov 14 07:00:19 MST 2024

Total time taken to generate the page: 0.01103 seconds