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 / HELP with loop command is a OBJECT?!

Author
Message
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 19th Oct 2003 03:00
Run time error at line 157. Object already exist.

ok line 157 is my
rem refresh screen
sync
loop

command why does DB think its a object? or whta am i doing wrong? possibilitys?

http://www.freewebs.com/ingamers
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 19th Oct 2003 03:13
Strange. I get the same kind of thing all the time. It drives me nuts . I find that usually, Dark Basic will refer to the line after the error, or, sometimes, the end of the do loop. That looks like your situation. If it says that, I find the error is usually somewhere inside the do loop. Somewhere.

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 19th Oct 2003 06:01
DarkBASIC's line location for the errors is real bad, its gets it wrong more times than it gets it right...

I suggest going through your code and seeing if there is something wrong with your objects... Ie, if you are trying to create an object that is already there.

Hope I Helped...

Knowledge Belongs To The People...
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 19th Oct 2003 06:36
i already did that but the damn bullet code confuses me so much =( i need to like go over my bullet code more i guess see if i can change more perameters

http://www.freewebs.com/ingamers
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 19th Oct 2003 07:21
Yeah, well, if your trying to recreate an object that is already there, DB will crash...

Try puting:



Hope I Helped...

Knowledge Belongs To The People...
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 19th Oct 2003 18:00
yeah i finally got rid of the problem by using some machine gun code some guy posted up on the forums a little while ago now im having positiioning problems but that will all change in about 20 minutes thanks for your help guys =)

http://www.freewebs.com/ingamers
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 20th Oct 2003 05:56
That "some guy" was me

So i guess i really helped then eh?

Knowledge Belongs To The People...
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 20th Oct 2003 16:21
guess so the thing was you posted it for some other guy and i just so happen to read that post too so =) yeah it helped

http://www.freewebs.com/ingamers
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 20th Oct 2003 16:38
Hoorah!

Knowledge Belongs To The People...

Login to post a reply

Server time is: 2025-05-21 09:55:33
Your offset time is: 2025-05-21 09:55:33