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 - 07-13-2020, 02:14 PM
RE: Compiling errors - by boriel - 07-14-2020, 10:19 PM
RE: Compiling errors - by Jodo - 07-14-2020, 10:40 PM
RE: Compiling errors - by boriel - 07-15-2020, 07:26 AM
RE: Compiling errors - by Jodo - 07-18-2020, 01:25 PM
RE: Compiling errors - by boriel - 07-18-2020, 04:47 PM
RE: Compiling errors - by Jodo - 07-18-2020, 06:51 PM
RE: Compiling errors - by boriel - 07-19-2020, 11:38 AM
RE: Compiling errors - by Jodo - 07-19-2020, 01:50 PM
RE: Compiling errors - by boriel - 07-19-2020, 03:37 PM
RE: Compiling errors - by Jodo - 07-19-2020, 06:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)