As much a s we'd like to help you, if you don't start providing more details we won't be able to diagnose anything. Did you try the script exactly as it was posted? Did you run it directly from the command line first? Have you made yourself familiar with debugging a script as described in the KiXtart Manual? Does the script run at all? Where does it fail? What are the eooror code(s) at the point of failure?
_________________________
There are two types of vessels, submarines and targets.