Try this one, only /inc %cnt if the entry was removed.
Reset:{
var %cnt = 1
while ( $cnick(%cnt) != $null ) {
cnick -r $cnick(%cnt,a)
else inc %cnt
}
}
Imagine 3 lines in a text file,
1 first line
2 second
3 third
If you remove line1, the second line becomes line1,
1 second
2 third
so you would still remove line1 and not lline2.
1 third
now we are stil left with line1.
Hope that makes some sense to you.