07-13-2020, 02:14 PM
Hi,
I'm trying to compile a game written wholly in Sinclair BASIC and amĀ having trouble with this line:
10 GOTO INT (RND*4)*6+1380
It works as expected when run as Basic but the compiler gives: 'Syntax Error. Unexpected token 'INT' <INT>'
If I rewrite it to:
10 LET a=INT (RND*4)*6+1380: GOTO a
this also works fine when run as BasicĀ but the compiler gives: 'identifier 'a' is a var, not a label'
Is there another way I could write it that would compile?
Thanks.
I'm trying to compile a game written wholly in Sinclair BASIC and amĀ having trouble with this line:
10 GOTO INT (RND*4)*6+1380
It works as expected when run as Basic but the compiler gives: 'Syntax Error. Unexpected token 'INT' <INT>'
If I rewrite it to:
10 LET a=INT (RND*4)*6+1380: GOTO a
this also works fine when run as BasicĀ but the compiler gives: 'identifier 'a' is a var, not a label'
Is there another way I could write it that would compile?
Thanks.