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 Professional Discussion / Cannot close nest

Author
Message
Wu dynasty
13
Years of Service
User Offline
Joined: 7th Feb 2013
Location: In a democracy
Posted: 29th May 2013 18:34
Hello i am getting a cannot close nest error.
Thanks,
Nathan


You are entering the Wu Dynasty. Boomshakalaka
-Nathan
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 29th May 2013 19:23 Edited at: 29th May 2013 19:24
down at the bottom of this code you have this,




So you're missing a NEXT statement to close the FOR loop, plus an ENDIF to close the open IF statement.

Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 29th May 2013 21:22
u already made thread..

same question, same code and the answer is still the same.

http://forum.thegamecreators.com/?m=forum_view&t=205756&b=1

if you made a new thread, what exactly you trying figure? my answer wasnt good enough? but still Kevin said the same..

Stream SnifferTools/Plugins/Models/Games and more!
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 29th May 2013 22:27
proper indenting will almost always solve this sort of problem. it makes it so much easier to read and see whats happening and it is just good coding practice.



with proper indenting, if something is missing, then your code wont line up properly, and it becomes obvious exactly where you need to place a close statement.

Shazam!

Login to post a reply

Server time is: 2026-07-07 07:34:09
Your offset time is: 2026-07-07 07:34:09