Error is probably due to the fact that there's no set command in the line, so mIRC doesn't know that you want to set the variable.

Please note that with this type of variable, you can not use the /var command to make them local variables.