I'd suggest you pick up a good programming/debugging reference for the language in question and learning more about how it works. You need to learn to flap your wings before you try and fly.