mIRC Home    About    Download    Register    News    Help

Print Thread
#103771 24/11/04 10:16 PM
S
state
state
S
on *:DIALOG:wsp:sclick:2: { if ($did(1).state) { did -e wsp 3,5,6,7 } | else { did -b wsp 3,5,6,7 } }


did invalid parameters, something stupied missing probably, cheers

#103772 25/11/04 12:09 AM
N
Naz
Naz
N
the "if" is incomplete. use...
if ($did(1).state == 1) or if ($did(1).state == 0)

Last edited by Naz; 25/11/04 12:17 AM.
#103773 25/11/04 05:15 AM
Joined: Mar 2004
Posts: 175
R
Vogon poet
Offline
Vogon poet
R
Joined: Mar 2004
Posts: 175
Code:
On *:DIALOG:wsp:sclick:2: {
If ($Did(1).state == 1) { did -e wsp 3,5,6,7 }
Else { did -b wsp 3,5,6,7 }
}

#103774 25/11/04 05:50 AM
Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
Actually his $did was complete.

if ($did(1).state) { command1 } | else { command2 }

This would trigger command 2 if the box is checked, command1 if it is unchecked. If it's unchecked, the $did(1).state will return 0, which will make mIRC interpret the if statement to be false.

#103775 25/11/04 07:35 PM
S
state
state
S
cheers, i had it the wrong way round


Link Copied to Clipboard