mIRC Home    About    Download    Register    News    Help

Print Thread
#167459 24/12/06 11:38 PM
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
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)
}

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

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


Invision Support
#Invision on irc.irchighway.net
Riamus2 #167481 25/12/06 05:00 AM
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
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

Fantas #167500 25/12/06 11:43 AM
Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
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.

Sais
Fantas #167502 25/12/06 02:17 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
What I gave you will insert == between all of the words. The only $N that you use is $2-.


Invision Support
#Invision on irc.irchighway.net
Sais #167529 25/12/06 10:44 PM
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
Thanks guys that got it


Link Copied to Clipboard