Hello once again guys!

Please go through the code below and advice me how to increment a parameter on a set interval of time.
Code:
 while %i <= $nick(#,0,a) {
 .echo I am incrimenting after 6 seconds! %i
. timer 1 6 nexti }
alias nexti {
.inc %i 1 }
  

Whenever I tried, I end up with an infinite loop! which crashes my mIRC client.


if it is a door, it will open!