mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 76
A
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
Code:
alias ck {
  var %reason = [Clones Kick] No join for your host. $ord(%kicks) kicks
  var %i = 1
  while ( $gettok($ialchan($address($1,2),#,%i),1,33) ) {
    kick # $ifmatch %reason
    [color:red]inc %kicks[/color] 
    inc %i
  }
}


i have a clones kick script, but $ord wont work, i kicked 5 clones but $ord wont +1 on next user, why ???

Last edited by aZnLupin; 23/03/03 05:43 AM.
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
It won't increment for each kick because you set the value of %reason before the loop, so incrementing %kicks in the loop makes no difference to the value of %reason. Simply put the line which sets %reason as the first line in the while loop and it will work as you want.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Dec 2002
Posts: 76
A
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
thanks


Link Copied to Clipboard