mIRC Home    About    Download    Register    News    Help

Print Thread
#167459 24/12/06 11:38 PM
F
Fantas
Fantas
F
what i'm trying to do is have it echo $2 == life $3 == is $4 == good but i get life is good ==
on *:TEXT:!word*:#: {
echo -a $2- $+ $chr(61) $+ $chr(61)
}

#167469 25/12/06 03:56 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
If you want to put == between each word, use:

echo -a $replace($2-,$chr(32),$+($chr(32),==,$chr(32)))

Riamus2 #167481 25/12/06 05:00 AM
F
Fantas
Fantas
F
thats close what i'm trying to do is find a shorter code for this
$chr(36) $+ $chr(50) $chr(61) $+ $chr(61) $2 $chr(36) $+ $chr(51) $chr(61) $+ $chr(61)


so i don't have to put $2 $3 $4 etc

#167500 25/12/06 11:43 AM
Joined: Oct 2003
Posts: 284
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 284
Something like:
Code:
var %i = 1, %output 
while (%i <= $0) {
  %output = %output $ $+ %i = $($+($,%i),2)
  inc %i
}
return %output

?

[edit]
And, by the way, there was no need to write either $ or the numerals as $chr() sequences. You could have either:
Code:
$ $+ 2

or
Code:
$!2

[/edit]

Last edited by Sais; 25/12/06 11:51 AM.
#167502 25/12/06 02:17 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
What I gave you will insert == between all of the words. The only $N that you use is $2-.

Sais #167529 25/12/06 10:44 PM
F
Fantas
Fantas
F
Thanks guys that got it


Link Copied to Clipboard