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.

DarkBASIC Discussion / DarkEDIT Error

Author
Message
cbiwolfe
19
Years of Service
User Offline
Joined: 23rd Jan 2006
Location:
Posted: 26th Jan 2006 00:16
When I try to compile a program I wrote,
I get a syntax error:
Nesting Error at line 378 at line 378
And highlights the line after the last line of code
(Which has nothing on it)
I checked all my If-statements, they all have an Endif after them,
so thats not the problem.
If someone could help me, that would be great.
Thanks!
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 26th Jan 2006 13:39
Uh...code?


Hippopotomonstrosesquippedaliophobia-Fear of long words
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 26th Jan 2006 15:27
check all your loops.

a nesting error means it cannot find an ending or a beginning of an IF ENDIF, REPEAT UNTIL, FOR NEXT, etc. etc.

The Cowboy Game progress 17% (paused)
HorizShootiz progress 20% - optimising code
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 26th Jan 2006 16:04
u could have one endif too many, check u ended ur main loop as well. it will something stupid. it always is

I am a Christian and I know that God loves me. That is what makes my life so great!
cbiwolfe
19
Years of Service
User Offline
Joined: 23rd Jan 2006
Location:
Posted: 27th Jan 2006 04:13
Well, I'll check again.
Thanks for the help.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 27th Jan 2006 23:14
Thats why we indent our code. So it's easy to prevent nesting errors.

Like:



Login to post a reply

Server time is: 2025-05-23 10:30:02
Your offset time is: 2025-05-23 10:30:02