mIRC Home    About    Download    Register    News    Help

Print Thread
#40561 08/08/03 07:33 PM
T
TheChosenone
TheChosenone
T
how do I make a counter where when some one joins a channel it counts how many people i have seen join that channel?

#40562 08/08/03 08:16 PM
P
pheonix
pheonix
P
on *:JOIN:#:{
if ($nick == $me) {
set $eval(%count. $+ $chan,2) 0
}
elseif ($nick != $me) {
inc $eval(%count. $+ $chan,2) 1
echo $chan i have seen $eval(%count. $+ $chan,2) users join this channel.
}
}
on *:PART:#:{
if ($nick == $me) {
unset $eval(%count $+ $chan,2)
}
}

Last edited by pheonix; 08/08/03 08:29 PM.
#40563 08/08/03 08:28 PM
T
TheChosenone
TheChosenone
T
What does this mean? /inc: invalid parameters (line 6, Counter)

#40564 08/08/03 08:29 PM
P
pheonix
pheonix
P
edited it
paste the new one.

#40565 09/08/03 02:11 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
it means pheonix did not test yet again another segment of code..

#40566 09/08/03 11:43 AM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
lol, Surely not, I mean he couldn't have done it againnnn? Could he? confused

#40567 09/08/03 06:33 PM
P
pheonix
pheonix
P
it was tested, i just pasted the wrong variable name in a couple of places blush:

on *:JOIN:#:{
if ($nick == $me) {
set $eval(%count. $+ $chan,2) 0
}
elseif ($nick != $me) {
inc $eval(%count. $+ $chan,2) 1
echo $chan i have seen $eval(%count. $+ $chan,2) users join this channel.
}
}
on *:PART:#:{
if ($nick == $me) {
unset $eval(%count. $+ $chan,2)
}
}

Last edited by pheonix; 09/08/03 06:34 PM.
#40568 09/08/03 09:07 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
If it was tested then why didn't you just paste the whole script? :tongue:

#40569 09/08/03 09:10 PM
P
pheonix
pheonix
P
coz mines a lot bigger and has more stuff in it coz i have just the 1 on *:JOIN then i just use if ( elseif( etc

#40570 09/08/03 09:13 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
You are doing well for someone that has only installed mIRC again a week ago.

#40571 09/08/03 09:21 PM
P
pheonix
pheonix
P
i have no dialogs or picwins yet frown.

#40572 10/08/03 01:00 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
Dialogues are over-rated. I have about 4 in my script, the rest of the functions are powered by dynamic popups.

#40573 11/08/03 02:27 PM
Joined: Dec 2002
Posts: 127
F
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
yeah, you're right, i'd rather click through an untold number of popups and subpopups than have the functions all in one convenient location.


Link Copied to Clipboard