Top

$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

this alias will let you reverse the text..
usage $reverse(text)
eg: $reverse(text) will return "txet"


Grab the Code

Comments

  (6)  RSS
xDaeMoN
Comments: 696
 
mIRC Snippet:  $reverse
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
Nerd
Comments: 16
 
mIRC Snippet:  $reverse
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 ;)
Gex
Comments: 94
 
mIRC Snippet:  $reverse
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
Gex
Comments: 94
 
mIRC Snippet:  $reverse
Posted on Mar 4, 2006 4:49 am
its fixed now
xDaeMoN
Comments: 696
 
mIRC Snippet:  $reverse
Posted on Mar 4, 2006 2:57 pm
There is no need for the $remove.
Gex
Comments: 94
 
mIRC Snippet:  $reverse
Posted on Mar 4, 2006 9:05 pm
yes i $removed it :P thanks

Please Register or Login to start posting comments.
Bottom