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 / Syntax Error in a Tutorial Code

Author
Message
ace4343
15
Years of Service
User Offline
Joined: 28th Feb 2011
Location:
Posted: 1st Mar 2011 05:48
I keep getting a syntax error every time I use this code, I tried mixing the codes, in tutorial 1, and my code was:



Any help would be appreciated, either I misread it, did something wrong, or it's just DB. Or I combined the codes, and I was supposed not to.

Before you ask, I got the DB pro free for 1 person. ;D
Wyldhunt
16
Years of Service
User Offline
Joined: 27th Sep 2009
Location: The Dark Side
Posted: 1st Mar 2011 11:10 Edited at: 1st Mar 2011 11:18
You were using object number 1 twice. Your sphere was object 1 and your boxes used object numbers 1-5. You'd need to either make your sphere object number 6 or make your boxes uses object numbers 2-6.

Here. This may demonstrate better.
Copy/paste it in to your DarkBasic Pro and take a look at it.

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 1st Mar 2011 20:45
It should be a runtime error not a syntax error.
ace4343
15
Years of Service
User Offline
Joined: 28th Feb 2011
Location:
Posted: 2nd Mar 2011 05:15
Thanks guys! I tried to fix the camera, just set the movement from 10 to 15, then I got a syntax.


[i]

Before you ask, I got the DB pro free for 1 person. ;D
ace4343
15
Years of Service
User Offline
Joined: 28th Feb 2011
Location:
Posted: 2nd Mar 2011 05:23
It said syntax, just like any other time I got an error.

Before you ask, I got the DB pro free for 1 person. ;D

Login to post a reply

Server time is: 2026-07-16 23:19:01
Your offset time is: 2026-07-16 23:19:01