Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling errors
#1
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.
Reply


Messages In This Thread
Compiling errors - by Jodo - 2020-07-13, 03:14 PM
RE: Compiling errors - by boriel - 2020-07-14, 11:19 PM
RE: Compiling errors - by Jodo - 2020-07-14, 11:40 PM
RE: Compiling errors - by boriel - 2020-07-15, 08:26 AM
RE: Compiling errors - by Jodo - 2020-07-18, 02:25 PM
RE: Compiling errors - by boriel - 2020-07-18, 05:47 PM
RE: Compiling errors - by Jodo - 2020-07-18, 07:51 PM
RE: Compiling errors - by boriel - 2020-07-19, 12:38 PM
RE: Compiling errors - by Jodo - 2020-07-19, 02:50 PM
RE: Compiling errors - by boriel - 2020-07-19, 04:37 PM
RE: Compiling errors - by Jodo - 2020-07-19, 07:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)