Originally Posted By: 04nunhucks
Also, I am sure all the variables are declared at the begninning of the script, NTDOC.


Well declaring the variables is probably not your issue, but they are not declared otherwise these errors would not show.

You also use vars in strings and macros in strings all of which removing and cleaning up might help in the long run to make the code better.

.