mIRC Homepage
how would I Get the value of the number of the people in the channel?
$nick(#channel,0)
$nick($chan,0) or $nick($chan,0,a) for the total number of nicks in $chan
$nick($chan,0,r) for the number of regular (non-opped/voiced/half-opped) users
$nick($chan,0,o) for the number of ops
$nick($chan,0,v) for the number of voiced users
$nick($chan,0,ov) for the number of ops + voiced users
$nick($chan,0,h) for the number of halfops
$nick($chan,0,hv) for the number of halfops + voiced users
$nick($chan,0,ohv) or $nick($chan,0,a,r) for all non-regular users
$nick($chan,0,a) say not enough parameters, and $nick($chan,1,a) says the first person in the channel
You must be in a channel in order for $chan to mean anything. Therefore, it won't work if you are in your status window, in a custom @window or in a query/chat window.
i type //echo $nick($chan,0,a) in the channel window, it heys not enough parameters
I have no idea why it does that, but it worked fine for me when I added a -a in (//echo -a $nick($chan,0,a)).
It does that because $nick($chan,0,a) returns a number, and /echo syntax is:

/echo [color number] [params/window] <text>

Use -a, as Collective suggested.
© mIRC Discussion Forums