mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2007
Posts: 9
F
faine Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Nov 2007
Posts: 9
Hello!

I need a little help. I still have some problem with my quiz script.

How can I make the script display for example this: $555555$ (this is a color code I need to display for a java based chat through an irc gateway)

I tried this combination in the script, but it didn't work:
msg #quiz $chr(36) $+ 555555 $+ $chr(36)
it displayed nothing

but if I change the first code to another, i.e $chr(95)
msg #quiz $chr(95) $+ 555555 $+ $chr(36)
it displays: _555555$

I don't see where is the problem frown

Any help greatly appreciated.

Thanks.

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
No need to use $+ just escape the first $ with !

example...

msg #quiz $!555555$

Displays $555555$


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Nov 2007
Posts: 9
F
faine Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Nov 2007
Posts: 9
Thanks for your answer.

It doesn't work for me.
If I put msg #quiz $!555555$ in my script it displays nothing. frown

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
That line will work on it's own, so the problem is elsewhere.

Most likely the text is being over-evaluated, perhaps by /timer or /scon, or deliberately via $eval() or $(). You can work-around this by adding more exclamation marks until the text appears correctly. Over-evaluation can be a security risk, though, if it involves text taken from other users.

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Indeed just do this for a test

in the editbox (where you type to talkt o people type this)...

//say $!555555$

watch what happens :P


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Nov 2007
Posts: 9
F
faine Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Nov 2007
Posts: 9
yeah, it was the timer's fault smile
It works now with 2 exclamation marks.

Thanks for the helps smile


Link Copied to Clipboard