Can I ask you to have a look at our stickies? For example, the Simple Questions Thread and the Script Help thread. They're ideal for the problems you've posted, so you should go ahead and post them there, instead. Thanks. :)
Regarding your thread, you should post it in the Script Help thread, since it looks like you might be doing something wrong.
However, my advice is to scrap PokeScript altogether and go with XSE. People mostly use that nowadays, and so if you were to run into problems with that then you're more likely to get help quicker.