mIRC Homepage

Problem with if ($read(abc.txt, w, %i) iswm abc)

Posted By: mihpares

Problem with if ($read(abc.txt, w, %i) iswm abc) - 06/07/07 04:37 PM

Iv´e got the problem that the if at the while doesn´t work. Some friend gots the same problem, it seems to be a bug at mIRC.
It returns nothing.

So how can i solve this problem?


Code:
$checkexcept(%cnick,nick)

alias listcheck {
  var %cnick = $gettok($1,1,33)
  var %cident = $gettok($gettok($1,1,64),2,33)
  var %chost = $gettok($gettok($1,1,58),2,64)
  var %crname = $gettok($gettok($1,1,61),2,58)
  var %cip = $gettok($1,2,61)
  if ($checkexcept(%cnick,nick)) {
    msg #opers Except Nick: $1
  }
}
alias checkexcept {
  if ($2 == nick) {
    if ($read($mircdirbllistsexception
ick.exc, w, $2)) {
      return 1
    }
    else {
      var %i = 1
      while ($read($mircdirbllistsexceptionwcnick.exc,%i)) {
        if ($read($mircdirbllistsexceptionwcnick.exc,%i) iswm $2) {
          return 1
          halt
        }
        else {
          inc %i 1
        }
      }
    }
  }
} 


//edit; this stupid code tags removes all \ -.-
Posted By: mihpares

Re: Problem with if ($read(abc.txt, w, %i) iswm ab - 06/07/07 04:51 PM

mistake found.....

can be closed
© 2020 mIRC Discussion Forums