mIRC Homepage
Posted By: DuXxXieJ Normaly it works :S - 01/05/07 06:38 PM
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)
Posted By: Solo1 Re: Normaly it works :S - 01/05/07 07:47 PM
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?
Posted By: RusselB Re: Normaly it works :S - 02/05/07 12:26 AM
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.
Posted By: DuXxXieJ Re: Normaly it works :S - 02/05/07 11:14 AM
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.
Posted By: hixxy Re: Normaly it works :S - 02/05/07 11:25 AM
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.
Posted By: maroon Re: Normaly it works :S - 02/05/07 11:32 AM
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
Posted By: NaquadaServ Re: Normaly it works :S - 02/05/07 01:27 PM
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
}
© mIRC Discussion Forums