mIRC Home    About    Download    Register    News    Help

Print Thread
#176006 01/05/07 06:38 PM
D
DuXxXieJ
DuXxXieJ
D
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.
#176014 01/05/07 07:47 PM
S
Solo1
Solo1
S
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?

#176044 02/05/07 12:26 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
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.

D
DuXxXieJ
DuXxXieJ
D
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.

#176067 02/05/07 11:25 AM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
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.

#176068 02/05/07 11:32 AM
Joined: Jan 2004
Posts: 2,081
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jan 2004
Posts: 2,081
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

#176070 02/05/07 01:27 PM
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
}


Link Copied to Clipboard