Look:
Code:
on *:TEXT:!bonusall:#testchannel: {
  %n = $nick(#,0) | %i = 1
  :next
  if (%i > %n) goto end
  %nick = $nick(#,%i)
  %points = $calc( $readini(Points.ini,n,$+(,#,.,%nick),Points) + 500 )
  writeini -n Points.ini $+(,#,.,%nick) Points %points
  inc %i 1 | goto next
  :end
  msg $chan Everyone has been given 500 points!
}


So, even the %n will be 0, goto works perfectly. My opinion that using goto is more easy then while, even if you have other difficult situations smile