Are you copying this from somewhere or writing code without a prior knowledge of SmileBASIC's instructions? A lot of the syntax you are using is wrong and you are not using the appropriate instructions. Try starting to learn SmileBASIC by developing small, basic programs on your own, then learning more advanced instructions as you go.