Try use this code (fixed) :
http://pastebin.com/mWdAQ3HvNOTE 1: if the results are not correct from your FIRST try of this code i thing the problem is on the font, try change your font to : FixedSys 9 (for both and mirc script editor (Alt +r -> File -> Font) and the general mirc (Menubar -> View -> Font) font).
NOTE 2: if the problem is still then its probably something else reply here what happens.
try it.