mIRC Home    About    Download    Register    News    Help

Print Thread
#51613 27/09/03 01:58 PM
F
fred999
fred999
F
I have this script that has a command like that:

.timer 1 1 /msg # %sss

when a user in the channel does !command, this starts. And after 1 second, %sss is displayed.

This works, but sometimes %sss contains the character | (the vertical bar). When this is the case, %sss is truncated. Everything to the right of | in %sss is deleted. Only what is left of | is displayed.

It only happens when I put the timer. If I don't put the timer, all of %sss is displayed.

How do I fix this without taking away the timer?

thanks

#51614 27/09/03 02:35 PM
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
replace the | with $chr(124) , then it should work

#51615 27/09/03 03:16 PM
I
Iori
Iori
I
.timer 1 1 msg # % $+ sss

#51616 29/09/03 11:40 AM
F
fred999
fred999
F
Thanks to both of you. I used Iori's idea because it was simpler.

bye smile


Link Copied to Clipboard