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, eh?

Author
Message
Jacava
20
Years of Service
User Offline
Joined: 1st May 2004
Location: Somewhere. Sometime. Somehow. No Reason.
Posted: 1st Oct 2004 05:21
I have a "Nesting Error on line 1274", and I can't figure out what's wrong with it. My guess is that there is nothing to send the code bask to the top, but there is. Could someone help out here?

Simple.
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 1st Oct 2004 06:27
Its very hard to solve a problem like this without your code. Check every line that creates a if, do or gosub. Count them up and check how much endif's return's loop's there are, isnt this matching? .. nesting error..

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
WarGoat
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location: Montreal
Posted: 2nd Oct 2004 02:04
try to see if they are any endif, next, loop, or return that missing.

seto, now in vhs and dvd
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 2nd Oct 2004 04:25
Also if you are not indenting your code try indenting it. Then these sorts of errors become easier to spot.



becomes



Ignore me if your code is indented.

it's cool to hate
Jacava
20
Years of Service
User Offline
Joined: 1st May 2004
Location: Somewhere. Sometime. Somehow. No Reason.
Posted: 2nd Oct 2004 04:32
Sorry, but it is indented, and I can't find any missing loops or anything. I'll have a closer look tomorrow, because my parents will be home soon, and they don't like me going on the net too often.

Simple.
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 2nd Oct 2004 13:56
If you accidentily put the wrong variable in a "next" command, I think it may give you a nesting error. Check all your for next loops.

Xander Moser - Bolt Software - Firewall
Jacava
20
Years of Service
User Offline
Joined: 1st May 2004
Location: Somewhere. Sometime. Somehow. No Reason.
Posted: 2nd Oct 2004 18:05
It's working now, so thanks.

Simple.

Login to post a reply

Server time is: 2024-11-27 10:38:23
Your offset time is: 2024-11-27 10:38:23