|
Joined: Aug 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
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?
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Aug 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Aug 2003
Posts: 4 |
What does this mean? /inc: invalid parameters (line 6, Counter)
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
edited it paste the new one.
new username: tidy_trax
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
it means pheonix did not test yet again another segment of code..
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
lol, Surely not, I mean he couldn't have done it againnnn? Could he?
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
it was tested, i just pasted the wrong variable name in a couple of places  : 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
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
If it was tested then why didn't you just paste the whole script? :tongue:
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
You are doing well for someone that has only installed mIRC again a week ago.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
i have no dialogs or picwins yet  .
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
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.
|
|
|
|
Joined: Dec 2002
Posts: 127
Vogon poet
|
Vogon poet
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.
|
|
|
|
|