(topic moved from Bug Reports)

There's nothing wrong with mirc here. The first line in the file:
var %i = 1 | inc %i
declares a local var and increments it by 1. The file however is not treated as a script (as a whole), the lines are treated individually: line 2 will not know anything about a local var %i, so it will treat %i as global. This is why a second /play command will pick up the global var from the previous run and increment it further. Replacing the first line in the file with:
set %i 0 | inc %i
works fine though and I don't know why it didn't seem to work for you.

As I have told you in private, before reporting what you think are scripting-related bugs, make sure they are not actually scripting mistakes, by asking in the Scripts&Popups forum.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com