mIRC Home    About    Download    Register    News    Help

Print Thread
Problem with if ($read(abc.txt, w, %i) iswm abc) #180253 06/07/07 04:37 PM
Joined: Jun 2007
Posts: 10
M
mihpares Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jun 2007
Posts: 10
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 \ -.-

Last edited by mihpares; 06/07/07 04:50 PM.

[url=irc://irc.dream-irc.de][url=irc://irc.dream-irc.de][url=irc://irc.dream-irc.de][url=irc://irc.dream-irc.de]irc://irc.dream-irc.de[/url][/url][/url][/url]<- small,cute Network
http://irc-security.no-ip.org IRC-Security
Re: Problem with if ($read(abc.txt, w, %i) iswm ab [Re: mihpares] #180254 06/07/07 04:51 PM
Joined: Jun 2007
Posts: 10
M
mihpares Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jun 2007
Posts: 10
mistake found.....

can be closed


[url=irc://irc.dream-irc.de][url=irc://irc.dream-irc.de][url=irc://irc.dream-irc.de][url=irc://irc.dream-irc.de]irc://irc.dream-irc.de[/url][/url][/url][/url]<- small,cute Network
http://irc-security.no-ip.org IRC-Security