mIRC Homepage
Posted By: Perl Error switch between tabs - 10/05/15 11:29 PM
Hi , forgive my written English, I use a translator online, sorry.
I had an error not in other versions of mIRC with the same code, the error is this:

* /if: close bracket not found (line 33, test.mrc)

and I always get error when changing tabs, the sample code is useless, because the original code is very long.

Code:
menu status,query,menubar,channel {
  -  
  test: test 
  -
}
alias test {
  if ($dialog(test)) { dialog -x test test }
  dialog -med test test
}
dialog test {
  title "Dialog"
  size -1 -1 439 324
  option pixels notheme
  tab "Tab 1", 1, 9 28 408 204
  tab "Tab 2", 2
  tab "Tab 3", 3
  tab "Tab 4", 4
  tab "Tab 5", 5
  tab "Tab 6", 6
  button "1", 7, 34 248 65 25
  button "2", 8, 177 246 65 25
}
on *:dialog:test:sclick:*:{
  if ($did == 9) { 
    if (a == a) {
      { alias3 | halt }
    }
    if (b == b) {
      { alias2 | halt  }
    }
  }
}
alias -l mira {
 echo -s mira
}


Why the alias mira leaves no run in this version of mIRC and others if?
I think it may be a failure if they can fix it, I have several addons with the same error in this version 7.41.

a greeting.
Posted By: Loki12583 Re: Error switch between tabs - 10/05/15 11:51 PM
Do not enclose random lines in braces

Code:
on *:dialog:test:sclick:*:{
  if ($did == 9) { 
    if (a == a) {
      alias3 | halt
    }
    if (b == b) {
      alias2 | halt
    }
  }
}
Posted By: Perl Re: Error switch between tabs - 12/05/15 02:10 PM
Originally Posted By: Loki12583
Do not enclose random lines in braces

Code:
on *:dialog:test:sclick:*:{
  if ($did == 9) { 
    if (a == a) {
      alias3 | halt
    }
    if (b == b) {
      alias2 | halt
    }
  }
}


thanks Loki12583 , I had a very long code and did not know where the fault was, because I marked another line. but it seems strange that in all the old versions of previous mirc did not give me problems and the last if. Well thanks and greetings.
© mIRC Discussion Forums