mIRC Home    About    Download    Register    News    Help

Print Thread
#165502 27/11/06 06:00 AM
Joined: Jun 2006
Posts: 79
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2006
Posts: 79
alias copynick {
var %n = 0
while (%n < $nick(#mirc,0)) { .write newnick.txt $nick(#mirc,%n) | inc %n 1 }
}
how to remove total nick in txt ..
eg

43(total nick)
nick1
nick2
nick3

thanks

#165503 27/11/06 06:19 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
start your %n variable at 1, and it won't write the total

P.S.: Please remember to use the Code Tags

#165504 27/11/06 10:11 AM
Joined: Oct 2006
Posts: 166
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
Code:
alias copynick
write -c newnick.txt
var %a = 1
while $nick(#,%a) { write newnick.txt $ifmatch | inc %a
}


Kind Regards, blink
#165505 27/11/06 01:36 PM
Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
<cough>
Quote:
Code:
alias copynick [color:red]{[/color] 
write -c newnick.txt
var %a = 1
while $nick(#,%a) { write newnick.txt $ifmatch | inc %a [color:red]}[/color]
}


Sais
#165506 28/11/06 05:52 AM
Joined: Oct 2006
Posts: 166
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
oops!!


Kind Regards, blink

Link Copied to Clipboard