Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: DorkeyDear on May 20, 2007, 12:41:57 pm

Title: [Answered] '&M' = M underlined?
Post by: DorkeyDear on May 20, 2007, 12:41:57 pm
'K&M Sub-Machine Gun';
or
'K' + Chr(38) + 'M Sub-Machine Gun';

both ends to showing up like
KM Sub-Machine Gun

Is it possible to make the "&" show like I wish it to? Or does it just want to be mean and I have to use a different character?
Title: Re: '&M' = M underlined?
Post by: mxyzptlk on May 20, 2007, 12:44:09 pm
have you tried &amp?
Title: Re: '&M' = M underlined?
Post by: Toumaz on May 20, 2007, 01:01:33 pm
I don't think HTML encoding will work. I think you'll need to use another character.

The & thing is due to the unicode support in 1.4. Very annoying I'd say. ;(
Title: Re: '&M' = M underlined?
Post by: urraka on May 20, 2007, 02:31:56 pm
Hmm, try doubling the &. Like, 'K&&M Sub-Machine Gun'
Title: Re: '&M' = M underlined?
Post by: DorkeyDear on May 20, 2007, 02:56:20 pm
:D works! Thanks.
Title: Re: [Answered] '&M' = M underlined?
Post by: chrisgbk on May 20, 2007, 03:44:17 pm
This workaround shouldn't be needed in 1.4.1; I've mentioned this to MM already.