Decide how you want to store the que. You can choose between hash tables, txt files, ini files, a dialog and custom windows. What you want takes a bit of knowledge, so I'd get a decent knowledge base to work with before attempting it.
Try
this url for a very good introduction to mIRC scripting.