Well I found what my mistake was. I was following this tutorial set
The Monster Hunt 3D Tutorials over here: http://www.thegamecreators.com/?m=view_product&id=2030&page=3d_tutorial_index
and me following the section over here: http://www.thegamecreators.com/?m=view_product&id=2030&page=3d_tutorial_3
The tutorial have stated that the if format should be followed as such:
If STATEMENT then CODE EXECUTED IF STATEMENT IS TRUE
but as it turned out, the proper format is:
If STATEMENT
CODE EXECUTED IF STATEMENT IS TRUE
Endif
I don't know if it was a typo or perhaps an older version of the script language but that code gave me an error prior to me fixing the code.
Isenstadt Studio: http://isenstadtstudio.com/
Composers Page: http://milothatch.isenstadtstudio.com