mIRC Homepage

help with did -d -r problem!

Posted By: littlecramp

help with did -d -r problem! - 06/07/03 09:18 AM

id 9 is a combo , and has a text "all" added to it when $chan(0) is more than 0
on *:PART:#: {
if $dialog(search) {
if ($didwm(search,9,$chan)) {
did -d seeker 9 $ifmatch
if ($chan(0) == 0) { did -r search 9 }
}
}
if the parting channel resulted in $chan(0) = 0, all text should be remove frm id 9-combo. However, the "all" text still remain. As i insert the "all" text in line 1, using did -d search 9 1 cant delete it! What's wrong?
Posted By: ScatMan

Re: help with did -d -r problem! - 06/07/03 12:16 PM

when u leave the channel, in this event, $chan(0) will contain the channel u just left so it will be better to do $calc($chan(0) - 1)


Posted By: littlecramp

Re: help with did -d -r problem! - 06/07/03 04:28 PM

Thanks for your help!!!!
© 2020 mIRC Discussion Forums