mIRC Home    About    Download    Register    News    Help

Print Thread
#174522 09/04/07 03:37 AM
Joined: Apr 2007
Posts: 13
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Apr 2007
Posts: 13
On *:DIALOG:controlcanal:sclick:*:{
if ($did(controlcanal,7).state == 0 ) { enable #limite }
else if ($did(controlcanal,7).state != 0 ) { echo -a reputa }
}


#limite off
.echo -a mytext
#limite end


i made this when i click check box i want call to the limite group

but doesnt work , any help please thnx

StormTrooper #174525 09/04/07 05:32 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Off topic, but in future, please use the Code Tags. The button for the Code Tags looks like #

In regards to your query, there's nothing in your code to actually call the information in the group. You turn the group on (I also don't see anything to turn the group off/disable it).

Based on what you have shown, using a group is useless and a waste of code, since you only have the echo in the group, and no way of calling the echo command,

If all you're wanting to do is echo that information, then this would be better
Code:
on *:dialog:controlcanal:sclick:*:{
  if $did(7).state { echo -a my text }
  else { echo -a reputa }
}


If you're wanting to do something other than echoing, please provide that part of the actual code, and we'll see what we can do to get it working.

RusselB #174526 09/04/07 07:15 AM
Joined: Apr 2007
Posts: 13
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Apr 2007
Posts: 13
russelb thanx , but i want to do

#limite
on join:#: { .mode # +l $calc(%limite +1 }
close #limite

StormTrooper #174528 09/04/07 09:59 AM
Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
The format for groups is:

Code:
#GROUP ON/OFF
code, events, etc.

#GROUP END

You can then use:
Code:
.enable #GROUP
.disable #GROUP

To enable or disable the group.

To do that for your code:
Code:
#limite off
on join:#: {
 .mode # +l $calc(%limite +1)
}
#limite end

Then you can use /enable #limite, and /disable #limite to toggle it.


Those who can, cannot. Those who cannot, can.
Kardafol #174543 09/04/07 03:33 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I didn't mention about the format for the groups, as the OP had it correct in the original posting.

RusselB #174545 09/04/07 04:05 PM
Joined: Apr 2007
Posts: 13
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Apr 2007
Posts: 13
thnx pal, preciate

Kardafol #174546 09/04/07 04:07 PM
Joined: Apr 2007
Posts: 13
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Apr 2007
Posts: 13
thnx for the reply ,pal


Link Copied to Clipboard