A good thing to do would have been to show your code in your first post, or at least when it was explicity asked..
I'm sure you understand that people can't really help you with this just by guessing


#mircscripting @ irc.swiftirc.net == the best mIRC help channel