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 / Could not close nest at line 42?

Author
Message
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 22nd Dec 2004 04:54
Hi, i just downloaded darkbasic and i am trying to make a pong game following the tutorial (Its great ) but i have just written how the player 2 bat would move. I try to run it and but when i click run, a message pops up saying "Could not close nest at line 42". I am a total beginner so there is probably a simple solution. My code is included below.

Thanks in advance.
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 22nd Dec 2004 05:08 Edited at: 22nd Dec 2004 05:09
Your problem that DB is having is that there is no 'loop' command to close the 'do' command in line 1. Your problem is that you shouldn't have a 'do' command in line 1, because there is no reason for it. If you re-read the tutorial, from the beginning, I think you will find that there is no 'do' command there. The working code is as follows:



Hope this helps.

[edited for typos]

Part of solving the problem is actually noticing that the problem is there in the first place

Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 22nd Dec 2004 05:17
Thanks a lot

Login to post a reply

Server time is: 2024-11-27 16:58:21
Your offset time is: 2024-11-27 16:58:21