Check for any error messages (status window and active). Even if it wasn't working correctly, you would still see something messaged to the channel. You *are* typing !top5 from somewhere other than the client running the script, right? I assume you are because you said the adding/subtracting works, but I have to ask.

If nothing else, put an ECHO line as the first line after the on TEXT in the !top5 part. Something simple, such as:

echo -a WORKS

Try the trigger (!top5) and see if it echoes. If it does, move the line down one line and test. Keep doing this until you don't get an echo. This will tell you where the problem is located.

And, just double check that you are in fact using the latest version I posted.

As another option, install a clean copy of mIRC in another folder and test it there. Then you can see if perhaps it's because of a conflict with another script that you have.