Id: 388; Nick: Albie; Timestamp: 2007-05-27 09:34:42; Pasted as: mIRC
Description: Example debug
1
2
3
4
5
6
7
8
9
10
11
12
13
if ($1 == %trigger. [ $+ [ $chan ] $+ ] qban) {
  echo -ag We're inside the if.
  var %admin = $readini(admin.ini,Global,Admin) , %i = $numtok(%admin,32)
  echo -ag admin is set to %admin and i is set to %i
  while (%i) {
    echo -ag We're inside the while loop, the gettok is $gettok(%admin,%i,32) and ial is $ial($2)
    if ($gettok(%admin,%i,32) iswm $ial($2)) { 
      .msg $chan %themedebut. [ $+ [ $chan ] ] Je ne peut pas Qban $2 %themefin. [ $+ [ $chan ] ]
      return
    }
    dec %i
  }
}
Parsed for bracket errors and indented:
1
2
3
4
5
6
7
8
9
10
11
12
13
if ($1 == %trigger. [ $+ [ $chan ] $+ ] qban) {
  echo -ag We're inside the if.
  var %admin = $readini(admin.ini,Global,Admin) , %i = $numtok(%admin,32)
  echo -ag admin is set to %admin and i is set to %i
  while (%i) {
    echo -ag We're inside the while loop, the gettok is $gettok(%admin,%i,32) and ial is $ial($2)
    if ($gettok(%admin,%i,32) iswm $ial($2)) {
      .msg $chan %themedebut. [ $+ [ $chan ] ] Je ne peut pas Qban $2 %themefin. [ $+ [ $chan ] ]
      return
    }
    dec %i
  }
}
Options: New, Download,
, mIRC Parser;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About)