The error you got is an mIRC error, unrelated to the OS you are using. It will work on any OS from win2k pro, that means XP and 2k3 as well.
I dare to guess that you didn't copy the code exactly as it looks on this forum to your mIRC, or that you are not using 6.16. Make sure you copy the code just the way it looks on the forum post.
You can do that by clicking on "Quote" on my post, and copy pasting the code there, as there is a problem with these forums and copying code. When pasting in the mIRC Scripts Editor, it tends to put everything on one line.
The code works fine for me, no errors.