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 / could not close nest

Author
Message
Wu dynasty
13
Years of Service
User Offline
Joined: 7th Feb 2013
Location: In a democracy
Posted: 28th May 2013 18:16
I have a could not close nest error on the last line. Usually i just forgot a loop after my do. HOwever, this time i couldn\'t locate a problem. ANy help would be appreciated. Also any other feedback on my game would be cool.


Thanks,
Nathan

You are entering the Wu Dynasty. Boomshakalaka
-Nathan
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 28th May 2013 18:25
for c = 2 to 12
which=rnd(5)

where is the close command of your FOR loop?

for c = 2 to 12
..

next c

Stream SnifferTools/Plugins/Models/Games and more!
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 28th May 2013 21:35
And why on earth do you do this...

gosub L2

REM Level 2
L2:

You could just remove these lines and the code would have the same functionality.

Your code is horrible! You need to learn how to save data to text files and load it in via code. Hard coding your levels like that is the worst way to do things!

This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]

Login to post a reply

Server time is: 2026-07-06 18:34:38
Your offset time is: 2026-07-06 18:34:38