Are you sure you've got the files referenced in the right order?

The help file (CHM) has a lot more scripting examples in it then any FAQ file that I've seen in regards to mIRC.