$reverse
+ 0 likes
Please Register to submit score.
| Average Score | 4.8 |
| Scores Submitted | 4 |
| Date Added | Mar 03, 2006 |
| Last Updated | Mar 04, 2006 |
Introduction
usage $reverse(text)
eg: $reverse(text) will return "txet"
mIRC Snippet:
$reverse
Posted on Mar 3, 2006 6:30 pm
Posted on Mar 3, 2006 6:30 pm
Works fine if you only have 1 word, but if you put spaces in it, will not work properly.
Check this thread regarding that problem: http://www.hawkee.com/phpBB2/viewtopic.php?t=6281
Check this thread regarding that problem: http://www.hawkee.com/phpBB2/viewtopic.php?t=6281
mIRC Snippet:
$reverse
Posted on Mar 3, 2006 6:32 pm
Posted on Mar 3, 2006 6:32 pm
hmm looks very similar to the snippet a friend of mine made
alias reverse {
var %o = $len($1-),%i
while (%o) {
%i = $+(%i,$replace($mid($1-,%o,1),$chr(32),$chr(160)))
dec %o
}
if ($isid) return %i
else say %i
}
therefore i think it works ;)
alias reverse {
var %o = $len($1-),%i
while (%o) {
%i = $+(%i,$replace($mid($1-,%o,1),$chr(32),$chr(160)))
dec %o
}
if ($isid) return %i
else say %i
}
therefore i think it works ;)
mIRC Snippet:
$reverse
Posted on Mar 4, 2006 4:45 am
Posted on Mar 4, 2006 4:45 am
xdaemon yes i know it will reverse one word only and if there is spaces it will make the 2 words stuck to each other....in fact thats what i needed in a script i was making and i posted the alias here...its i can use tokenize to fix that...but i didnt need it



