while loop - 11/10/04 05:51 PM
this one was working before but now it is not
what is should do:
If a line is hello you
it should make all letters to dots
so ..... ...
but $rand(0,6) normal
.e..o y..
it was working before, I tried to change something but appereantly fcked it up
what is should do:
If a line is hello you
it should make all letters to dots
so ..... ...
but $rand(0,6) normal
.e..o y..
Code:
alias hnt { %a = 1 %b = $len($1-) %hnt = $null %hnts = $rand(0,6) while (%a <= %b) { if ($mid($1-,%b,1) != $chr(32)) { if (%hnts >= 1) { %hnt = . $+ %hnt dec %b dec %hnts } elseif (%hnts <= 1) { %hnt = $mid($1-,%b,1) $+ %hnt %hnts = $rand(0,6) dec %b } } elseif ($mid($1-,%b,1) == $chr(32)) { %hnt = $chr(32) $+ %hnt dec %b } return %hnt } }
it was working before, I tried to change something but appereantly fcked it up