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 / Object making problem.

Author
Message
Regnuar
15
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 26th Jan 2009 15:41
So, when i try to make a new object; a sphere for example, it only says "the object already exist at line blabla" and it's the same damn line i wrote it. any ideas?

code goes like this;

Regnuar
15
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 26th Jan 2009 15:44
oh.. forgot something..
Regnuar
15
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 26th Jan 2009 15:45
again...

...endif

if objselect = 1
make object sphere 2,20
endif

rem ---------------------------------------------- rem
...
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jan 2009 15:58
its to do with the speed of mouseclick(), when you mouse click the code has done it 50+ times so you end up with the error object exist, so look for some button click code to stop the loop.

Dark Physics makes any hot drink go cold.
Dabbler
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: Minnesota
Posted: 26th Jan 2009 16:41
Or, if the object already exists, don't create it again:



I hope this helps.


Whatever...
Xsnip3rX
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 27th Jan 2009 19:13 Edited at: 27th Jan 2009 19:14
Why are you remming the same line twice?

just use

or


Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 28th Jan 2009 06:02
Interesting. I was unaware that C++ style comments worked as well. I suppose it was because they didn't gray-out the line in the editor like "`" does.

Hm, no /*comment blocks*/ though...

Login to post a reply

Server time is: 2024-09-28 02:28:00
Your offset time is: 2024-09-28 02:28:00