SphereCommunity
< and > in message - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: < and > in message (/Thread-and-in-message)



< and > in message - Art - 08-24-2012 09:20 PM

Hello. I'm trying to display message "< here some text >". I want use '<' and '>' as text symbols, but sphere understand it as key for variable.

I tried
Code:
src.sysmessage <def.L1> here some text <def.R1>

but sphere saying Undefined symbol 'here'.


RE: < and > in message - Extreme - 08-24-2012 10:11 PM

Try
PHP Code:
local.msg "<"
local.msg .= "here some test"
local.msg .= ">"
sysmessage <local.msg



RE: < and > in message - Art - 08-24-2012 11:39 PM

Oh, seems like PHP thing Smile Thank you.
But same thing Sad 'Undefined' error.

On speech script:

Code:
on=**
...
local.msg = "<"
local.msg .= <src.name>
local.msg .= ">"
local.msg .= <args>

sysmessage @50,3,1 <local.msg>
...



RE: < and > in message - admin phoenix - 08-24-2012 11:43 PM

you canĀ“t use your <def.l1> because it is "html" and can only be use in gumps.


RE: < and > in message - Skul - 08-25-2012 10:00 AM

escape? \<some text\> lol? won't work, don't bother... not sure, <> are tags that sphere uses, i guess it's just how it goes. would be nice to use html special characters, and escape, but that's just not the way sphereserver is designed.


RE: < and > in message - Art - 09-01-2012 12:59 AM

But can i use '<' to display in message somehow?
Sorry i didn't understood fully.