mIRC Homepage
Posted By: jacksparrow2 Ip Scan problem - 13/04/05 02:21 PM
; ********** ®2005 MoonRedSoftware ******

alias ip_scan {
.echo -a escaneando IP de $1 $address($1,1)
:begin
.echo -a $ialchan($wildsite,$chan,%tmp).nick
inc %tmp
if %tmp > 5 { set %tmp 1 | return }
goto begin

}

i made this , i dont know what is wrong thnx
Posted By: Riamus2 Re: Ip Scan problem - 13/04/05 02:38 PM
; ********** ®2005 MoonRedSoftware ******

alias ip_scan {
set %tmp 1
.echo -a escaneando IP de $1 $address($1,2)
:begin
.echo -a $ialchan($wildsite,$chan,%tmp).nick
inc %tmp
if %tmp > 5 { set %tmp 1 | return }
goto begin

}

First, if you're not setting %tmp to begin with and it's $null, you'll get an error from the first time through before returning to "begin." Second, $wildsite uses the $address($nick,2) format.
© mIRC Discussion Forums