mIRC Homepage
Posted By: aZnLupin $ord wont work w/ this script - 23/03/03 05:40 AM
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 ???
Posted By: starbucks_mafia Re: $ord wont work w/ this script - 23/03/03 03:52 PM
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.
Posted By: aZnLupin Re: $ord wont work w/ this script - 24/03/03 10:15 AM
thanks
© mIRC Discussion Forums