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 / problem with executing

Author
Message
cheese pwner
17
Years of Service
User Offline
Joined: 26th Oct 2008
Location:
Posted: 27th Oct 2008 00:31
i have been creating some code with dark edit and it will not let me compile or execute. it always says "Error Running Code". I have copied the code from a tutorial. here is the code.


Rem Setup sync
Sync On
Sync Rate 30

Rem Create 5 cubes and place randomly
For x = 1 to 5
Make object cube x,100
Position object x,Rnd(2000),0,Rnd(2000)
Next x

Rem Main loop
Do
Rem Store camera angle
caY#= Camera angle Y()

Rem Control input for camera movement
If Upkey()=1 then Move camera 10
If Leftkey()=1 then Yrotate Camera Wrapvalue(caY#-5)
If Rightkey()=1 then Yrotate Camera Wrapvalue(caY#+5)

Rem Refresh Screen
Sync
Loop[/u][b][center]
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 27th Oct 2008 12:01
Go to "edit" in the drop down menu, select "properties" (or the bottom one) and make sure the path to DB.exe is correct.

I will have to check myself, but that`s how I remembered it.

TheComet

Peachy, and the Chaos of the Gems

Login to post a reply

Server time is: 2026-07-05 15:02:54
Your offset time is: 2026-07-05 15:02:54