mIRC Home    About    Download    Register    News    Help

Print Thread
#176006 01/05/07 06:38 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Code:
ON *:JOIN:#game:{
  inc %joins 1
}

ON *:KICK:#game:{
  inc %kicks 1
}

ON *:BAN:#game:{
  inc %bans 
}


Normaly it works, I got this (I asked for it) from the Forum, but normaly it worked, but now it doesn't do ANYTHING.

Well, ANYTHING? It only counts the kicks + bans.

(If I need mIRC 6.21, I got it already)

Last edited by DuXxXieJ; 01/05/07 06:40 PM.

Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Mar 2007
Posts: 139
S
Vogon poet
Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Of course it counts the kicks and bans thats what the code is meant to do. Please state what else you would like the code to do?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
if you mean it seems to have stopped counting the joins, ensure that you don't have another script that uses that variable. If you do, that would be the reason why the %joins counter doesn't appear to be working correctly.

Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Normaly this worked.
But, it counts the bans and kicks, but the joins, it puts the inc thingy at the bans + kicks, realy anoying, it's weird.


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Try the script in a fresh install of mIRC with no loaded scripts, dlls, etc. If it works then, then you have another script loaded that's interfering with it.

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
You didn't say whether you had followed RusselB's suggestion to find whether another script is also using your %join variable. Other reasons it could be not incrementing the JOIN counter include:

1. Another ON-JOIN-#game event above this, in the same script file, would be executed instead of this one.

2. You're looking at joins to another #channelname

3. If the variable is not either empty or numeric, then INC does nothing, ie:

//set %xyz X | inc %xyz | echo -a *** %xyz
//set %xyz 4 $+ $chr(0160) | inc %xyz | echo -a *** %xyz

Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Another join event prior to the join you listed (and in the same script), could cause this problem...
Code:
ON *:JOIN:*:{
  ; this happens
}
ON *:JOIN:#game:{
  ; this doesn't happen
  inc %joins 1
}


NaquadaBomb
www.mirc-dll.com

Link Copied to Clipboard