Oic.. smile The $nick($2,0) identifier works, it returns the number of nicks in the channel.. but now i've got another little issue smirk

Neither $nick($2,%i) nor $nick(#,%i) is working on the while part:
Code:
raw 366:*:{
  var %names = $nick($2,0)
  var %i = 1
  while (%i <= %names) {
    .msg Zyzzyx26 -  [color:blue]$nick(#,%i)[/color] or [color:blue]$nick($2,%i)[/color] 
    inc %i
  }
} 


Why? :P

Thanks, Zyzzy.