Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Nesting Error where there isn't any code to create an error

Author
Message
MaTt0344
20
Years of Service
User Offline
Joined: 6th Jan 2004
Location:
Posted: 20th Feb 2004 03:13
I am writing a simple space invaders game and I am at the point of making the missels shot by a plane move. I was trying to compile the code and it says "Syntax Error. Nesting error at line 142 line 142." Yes it does say line 142 twice and there is not code on the line it highlighted. I am using the DarkEDIT program and you can run the code without any of the image files by taking out those sections of the code or replacing them or whatever or maybe u can just look at it and see whats wrong.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 20th Feb 2004 03:28
maybe here...change G= 1 to G=1

`LOAD NUMBERS INTO SPRITES
FOR G= 1 TO 10
N$=STR$(G)
N$=N$+".bmp"
LOAD BITMAP N$,G
IF N$="10.bmp"
GET IMAGE 10,0,0,30,15
ELSE
GET IMAGE G,0,0,15,15
ENDIF
NEXT G

-RUST-
"What the... Mooooooooooo!"
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 20th Feb 2004 03:46
No, it's for this

MaTt's code:

FOR N=1 TO 10
MISELY(N)=530

should be

FOR N=1 TO 10
MISELY(N)=530
NEXT N

I think you have to DIM Misely

CURRENT PROJECT: RETRO PAC-MAN
MaTt0344
20
Years of Service
User Offline
Joined: 6th Jan 2004
Location:
Posted: 20th Feb 2004 04:08
thank you comando you were right, I needed a next n and I had spelled MISSELY wrong when I DIM'ed it.

Login to post a reply

Server time is: 2024-11-26 05:37:17
Your offset time is: 2024-11-26 05:37:17