*sigh*
Don't go and change all the 'Waitframes();' to 'Waitframe();', that won't do you any good.
How many scripts are you using?
It it's more than one, make sure they're all in the same .z file.
Also, it'd probably be a good idea for you to put
on the first line of the fileCode:import "std.zh"
The things that aren't compiling were declared within std.zh, and you haven't told ZScript to load it, therefore it doesn't know what they are.
What I don't understand is why they're not just loaded by default.