mIRC Home    About    Download    Register    News    Help

Print Thread
#209609 19/02/09 12:16 PM
R
rEnEeK
rEnEeK
R
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

#209611 19/02/09 03:09 PM
C
CodeTech
CodeTech
C
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?

#209622 19/02/09 07:24 PM
R
rEnEeK
rEnEeK
R
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.
#209625 19/02/09 09:48 PM
Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
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
R
rEnEeK
rEnEeK
R
thanks man


Link Copied to Clipboard