mIRC Home    About    Download    Register    News    Help

Print Thread
#40561 08/08/03 07:33 PM
Joined: Aug 2003
Posts: 4
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Aug 2003
Posts: 4
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
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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.

new username: tidy_trax
#40563 08/08/03 08:28 PM
Joined: Aug 2003
Posts: 4
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Aug 2003
Posts: 4
What does this mean? /inc: invalid parameters (line 6, Counter)

#40564 08/08/03 08:29 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
edited it
paste the new one.


new username: tidy_trax
#40565 09/08/03 02:11 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
it means pheonix did not test yet again another segment of code..


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

#40567 09/08/03 06:33 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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.

new username: tidy_trax
#40568 09/08/03 09:07 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
If it was tested then why didn't you just paste the whole script? :tongue:

#40569 09/08/03 09:10 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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


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

#40571 09/08/03 09:21 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i have no dialogs or picwins yet frown.


new username: tidy_trax
#40572 10/08/03 01:00 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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.


------
deep down, i'm really superficial.

Link Copied to Clipboard