mIRC Home    About    Download    Register    News    Help

Print Thread
#42691 18/08/03 06:55 AM
D
dunno
dunno
D
the return is:
a
A Unknown command.

how can i make it return easily like a | a, not using chr 124
becouse.. some of my channel, in the topic.. they separate using |. like this

the original topic is welcome to #chan | have a nice day!
they error is.. its on show me "welcome to #chan" and an error "HAVE Unknown command"

somebody have any suggestion?
$replace($1-,$chr(124),and) not working

and im using mts for my script.

#42692 18/08/03 07:44 AM
Joined: Feb 2003
Posts: 2,737
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,737
When a string contains or might contain a meta-charcter, you may want to contain it in a %variable.

var %topic = $1-
echo -a %topic

If you must use the | character as text within your script, your only option is $chr(124). However, come to think of it... $(|) might also work.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#42693 22/08/03 09:45 PM
F
fez
fez
F
the PIPE (" | ") is used to seperate commands from eachother.
Either dont use a pipe, or use $chr(124).

wink

#42694 22/08/03 09:53 PM
Joined: Feb 2003
Posts: 2,737
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,737
I think I explained that 5 days ago. But thanks.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#42695 24/08/03 04:59 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Actually you only suggested using chr or the $() alternative. You didn't explain why.


Link Copied to Clipboard