mIRC Home    About    Download    Register    News    Help

Print Thread
#209609 19/02/09 12:16 PM
Joined: Feb 2009
Posts: 3
R
rEnEeK Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Feb 2009
Posts: 3
Hello, I'm working on some mIRC script and I need this..

How to replace slash in script?
I think, spaces aren't allowed...

I want write this:

DVD CZ/SK dabing

So how can I fix it?

DVD \CZ/SK \dabing or how?

Thanks

rEnEeK #209611 19/02/09 03:09 PM
Joined: Jan 2009
Posts: 9
C
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2009
Posts: 9
i guess instead use $chr(92) for \ and $chr(47) for /

Your question is not really clear to me. perhaps you could specify what your doing with the text your replacing? Are you just trying to return this text for display or what?

Joined: Feb 2009
Posts: 3
R
rEnEeK Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Feb 2009
Posts: 3
In some irc chans are IRC bots... Bot reports, when new torrent was added on torrent tracker... And I want popup, when new torrent was added. "DVD CZ/SK dabing" is category of torrents...

So can I write it "DVD$chr(92)CZ$chr(47)SK$chr(92)dabing"?

Last edited by rEnEeK; 19/02/09 08:13 PM.
rEnEeK #209625 19/02/09 09:48 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
//echo $replace(DVD \CZ/SK \dabing,$chr(92),$chr(47))
returns DVD /CZ/SK /dabing

Last edited by Tomao; 19/02/09 09:50 PM.
Tomao #209635 19/02/09 11:51 PM
Joined: Feb 2009
Posts: 3
R
rEnEeK Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Feb 2009
Posts: 3
thanks man


Link Copied to Clipboard