mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
there seems to be a bracket mismatch but I can't find it.
please help
Code:
 on *:dialog:instel:*:*:{
if ($devent == init) {
hideall
mdx.load
mdx SetControlMDX $dname 1 TreeView haslines linesatroot hasbuttons showsel > $views
did -i $dname 1 1 iconsize normal small
did -i $dname 1 1 seticon normal 0,icons\flower.ico
did -i $dname 1 1 seticon normal 0,icons\connect.ico
did -i $dname 1 1 seticon normal 0,icons\mail.ico
did -i $dname 1 1 setcolor text $color($color(Normal text))
did -i $dname 1 1 setcolor bkg $color($color(background))
did -i $dname 1 1 setcolor line $color($color(mode text))
did -a $dname 1 3 3 Persoonlijke info
did -i $dname 1 1 cb last
did -a $dname 1 ASL
did -a $dname 1 Overige
did -i $dname 1 1 cb root
did -a $dname 1 Status dank
did -i $dname 1 1 cb last
did -a $dname 1 Instellen
did -i $dname 1 1 cb root
did -a $dname 1 Talkers
did -i $dname 1 1 cb last
did -a $dname 1 Aanpassen
did -i $dname 1 1 cb root
did -a $dname 1 Prive blokker
did -i $dname 1 1 cb last
did -a $dname 1 Alg. instellingen
did -a $dname 1 Overige
did -a $dname 1 uitzonderingen
did -i $dname 1 1 cb root
did -a $dname 1 Afwezig systeem
did -i $dname 1 1 cb last
did -a $dname 1 Alg. instellingen
did -a $dname 1 Log/pager
did -a $dname 1 Thema's
did -a $dname 1 Pre redenen
did -a $dname 1 Overige
did -i $dname 1 1 cb root
did -a $dname 1 Vriendenlijst
did -i $dname 1 1 cb last
did -a $dname 1 Weergave
did -a $dname 1 Geluid
did -a $dname 1 Positie
did -a $dname 1 Skin
did -i $dname 1 1 cb last
did -a $dname 1 Laden
did -a $dname 1 Aanpassen
did -i $dname 1 1 cb root 7
did -a $dname 1 Misc
did -i $dname 1 1 cb root
did -a $dname 1 Serverlijst
did -i $dname 1 1 cb last
did -a $dname 1 Aanpassen
did -i $dname 1 1 cb root
did -a $dname 1 Informatie
did -i $dname 1 1 cb last
did -a $dname 1 Scrippie
did -a $dname 1 Credit
did -a $dname 1 mIRC
did -i $dname 1 1 cd root
} 
if ($devent == sclick) { 
if ($did == 1) {
tokenize 32 $did($did,1) 
if ($1 == slclick) {
if ($4 == 2) && ($5 == 2) { show.pers.asl }
if ($4 == 2) && ($5 == 3) { show.pers.overig }
if ($4 == 3) { show.status }
if ($4 == 3) && ($5 == 2) { show.status }
if ($4 == 4) { show.talker }
if ($4 == 4) && ($5 == 2) { show.talker }
if ($4 == 5) && ($5 == 2) { show.pmblock }
if ($4 == 5) && ($5 == 3) { show.pmblock.overig }
if ($4 == 5) && ($5 == 4) { show.pmblock.uitz }
if ($4 == 6) && ($5 == 2) { show.afwezig }
if ($4 == 6) && ($5 == 3) { show.afwezig.pagerlog }
if ($4 == 6) && ($5 == 4) { show.afwezig.thema }
if ($4 == 6) && ($5 == 5) { show.afwezig.reden }
if ($4 == 6) && ($5 == 6) { show.afwezig.overig }
if ($4 == 7) { show.notify.logo }
if ($4 == 7) && ($5 == 2) { show.notify.display }
if ($4 == 7) && ($5 == 3) { show.notify.geluid }
if ($4 == 7) && ($5 == 4) { show.notify.positie }
if ($4 == 7) && ($5 == 5) { show.notify.logo }
if ($4 == 7) && ($5 == 5) && ($6 == 2) { show.notify.laadskin }
if ($4 == 7) && ($5 == 5) && ($6 == 3) { show.notify.maakskin }
if ($4 == 7) && ($5 == 6) { show.notify.misc }
if ($4 == 8) && ($5 == 2) { show.serverlijst }
if ($4 == 9) && ($5 == 2) { show.scrippie }
if ($4 == 9) && ($5 == 3) { show.credit }
}
}
} 
} 

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
I can't seem to find any { } mismatch.

This, however, is unnecessary: $color($color(Normal text))

Just $color(text) $color(background) and $color(mode) should do it smile

Zyzzy.


"All we are saying is give peace a chance" -- John Lennon
Joined: May 2005
Posts: 449
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
It looks like he has an extra } at the end...not sure if that would throw it off.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The number of { } matches balances, and I couldn't find a mismatch for ( ) either.

Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
mirc gives a mismatch.
well i removed some of the code.
I'll make an extra dialog for that and all is working again.
I removed this part (in case you want to know)
Code:
 did -i $dname 1 1 cb root
did -a $dname 1 Informatie
did -i $dname 1 1 cb last
did -a $dname 1 Scrippie
did -a $dname 1 Credit
did -a $dname 1 mIRC 

and this
Code:
 if ($4 == 9) && ($5 == 2) { show.scrippie }
if ($4 == 9) && ($5 == 3) { show.credit } 

About the $color ......
This is my first time working with mdx.dll so I just used the code given in the tutorial.
Changed it though it saves some byte cool

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Ohh mdx.dll, that explains it. Sorry blush


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard