mIRC Home    About    Download    Register    News    Help

Print Thread
#42691 18/08/03 06:55 AM
Joined: Jul 2003
Posts: 3
D
dunno Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Jul 2003
Posts: 3
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,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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
Joined: Aug 2003
Posts: 27
F
fez Offline
Ameglian cow
Offline
Ameglian cow
F
Joined: Aug 2003
Posts: 27
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,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Actually you only suggested using chr or the $() alternative. You didn't explain why.


-KingTomato

Link Copied to Clipboard