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 / do loop problem

Author
Message
ImNewToDB
20
Years of Service
User Offline
Joined: 19th Sep 2005
Location:
Posted: 19th Sep 2005 18:30
hey all,
got a bit of a problem. I wrote a do loop with some mouse movements for a camera motion. Once I put a gosub subroutine in on the left mousebutton, it runs fine until I click the left mouse button. It finishes the subroutine and returns back to the main loop, but when it hits the LOOP end of the man loop, I get this error, "runtime error at line 58. Object does not exist." This is the line with the LOOP comand. Any1 heard of an error like this or know a solution?
Leeorg
21
Years of Service
User Offline
Joined: 5th Jul 2005
Location:
Posted: 19th Sep 2005 23:03
Sounds like you haven't actually created or loaded the object in question, then again without posting any code its hard to tell you exactly whats wrong. In future if you add your code it generaly helps 10 fold
blanky
21
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 19th Sep 2005 23:18
The DB compiler's line numbering accuracy is off a bit, too.

Part of the 'Emergency Response Noob Shooting Team' :: Feel free to add me to MSN, but don't expect any big favours.
I AM _NOT_ A MOD, I AM ONLY HUMAN (although I fly in my spare time).
dab
21
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 20th Sep 2005 02:27
Turn off your sync and try it again. That is another problem that causes DB to not know where the error is. Also, look about 1 line up (to the next text populated line). That is usually where the problem is.

------------------------
Visit my website of games
http://www.dabip.co.nr!
ImNewToDB
20
Years of Service
User Offline
Joined: 19th Sep 2005
Location:
Posted: 21st Sep 2005 02:42
here is the source code. sorry i took so long. thx
ImNewToDB
20
Years of Service
User Offline
Joined: 19th Sep 2005
Location:
Posted: 21st Sep 2005 05:20
got it! thanks all.

Login to post a reply

Server time is: 2026-07-08 10:17:32
Your offset time is: 2026-07-08 10:17:32