Hi,
have you chosen the right script in the map properties?
Are you working with the script file that is selected in the map properties?
If you are working with a diffrent script, have you included it in your main script?

cheers