mIRC Home    About    Download    Register    News    Help

Print Thread
Normaly it works :S #176006 01/05/07 06:38 PM
Joined: Jan 2007
Posts: 280
DuXxXieJ Offline OP
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.
Re: Normaly it works :S [Re: DuXxXieJ] #176014 01/05/07 07:47 PM
Joined: Mar 2007
Posts: 139
S
Solo1 Offline
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?

Re: Normaly it works :S [Re: DuXxXieJ] #176044 02/05/07 12:26 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
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.

Re: Normaly it works :S [Re: RusselB] #176066 02/05/07 11:14 AM
Joined: Jan 2007
Posts: 280
DuXxXieJ Offline OP
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.
Re: Normaly it works :S [Re: DuXxXieJ] #176067 02/05/07 11:25 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
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.

Re: Normaly it works :S [Re: DuXxXieJ] #176068 02/05/07 11:32 AM
Joined: Jan 2004
Posts: 1,388
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,388
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

Re: Normaly it works :S [Re: DuXxXieJ] #176070 02/05/07 01:27 PM
Joined: Dec 2002
Posts: 580
N
NaquadaServ Offline
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