Originally Posted By: Riamus2
Code:
on *:text:!admin:#channel: {
  var %c = 1, %t = $nick($chan,0,o)
  while (%c <= %t) {
    var %ops = $addtok(%ops,$nick($chan,%c,o),44) }
    inc %c
  }
  msg %ops $nick needs help in $chan $+ .
}


u have one "}" not needed at end of $addtok and the /msg op1 op2 op3 $nick blabla... is wrong! that must be into the loop so the code is

Code:
on *:text:!admin:#channel:{
  var %c 1
  while $nick(#,%c,o) {
    msg $v1 $nick needs help in # $+ .
    inc %c
  }
}