1) That error means that the name you tried to add to the shitlist wasn't in a channel that you were also in. ie: you didn't have a common channel. Without that, mIRC can't look up the person's address which it needs for the script to work, as it uses the address to add the person to the shit list.
2) If you want a fully working script, stop giving me bits and pieces of what you're working with, or completely scrap what you currently have and get a shitlist script from one of the scripting forums. This forum is for helping you with a script, not for writing one from scratch.
3) That +Q modelock seems to be unique to your network, so any script that you use or want to use would have to be tested there, so we'll need the name or connection information for the network and channel, so that tests can be properly completed.