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 / Game wont compile!

Author
Message
Travis Gatlin
17
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 18th Jun 2010 04:08
when i make a code, no matter what i type it wont compile, it says
"Compilation Failed (Syntax Errors) and i have even tried the simplest code! screenshot attached.

The Object of war is not to die for your country but make the other guy die for his
Yodaman Jer
User Banned
Posted: 18th Jun 2010 04:48
Do this:



A simple "Make Object Cube 1,5" command isn't going to do much by itself. You'll at least need a "Wait Key" after it, or try the little example I wrote up. If it doesn't work, I'm not what to tell you, except maybe try reinstalling DBPro. Sometimes that's the only option.

Travis Gatlin
17
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 18th Jun 2010 18:22
ok that worked, thanks for the help.

The Object of war is not to die for your country but make the other guy die for his
tvzen
16
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 18th Jun 2010 18:37
the problem is it runs the program and automatically ends it,so either

or


would fix it

waits till the person presses a button,then cont. the program,if it is at the end,it will end the program

would make it loop over and over again,so you will have to click the red X button on the right hand corner to end the program
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 18th Jun 2010 19:00
Check some tutorials, play arround with the comands.Learn the basics.Before posting something think about your problem, if you decide it`s something major post here, else Newcomers Corner.That`s what i do everytime so i`m sure i didn`t lost somebody`s time with basic stuff posting in DBPRO section.Good people come in Newcomers Corner to help newbies, i`m one of them.And "Game won`t compile"?What?It`s missleading title."Compilation Failed do to Syntax Errors" is better.

This is TDK`s tutorial thread go trought all of them:
http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Yodaman Jer
User Banned
Posted: 18th Jun 2010 19:12
Glad I could help you, Travis.

And like luskos said, read through TDK's tutorials. They are perhaps the best tutorials on the TGC website. They're well laid out, well written, and very clear and easy to understand. I still read them from time to time, even though I know most of the basics of DarkBASIC, because they're that good. They helped me out a lot when I first started programming.

Travis Gatlin
17
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 18th Jun 2010 20:40
Quote: "the problem is it runs the program and automatically ends it"

that wasnt my problem, i can do that but it just wouldnt compile it would say compilation failed even though the code was correct

The Object of war is not to die for your country but make the other guy die for his
tvzen
16
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 19th Jun 2010 18:35
show me your code
Travis Gatlin
17
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 19th Jun 2010 20:10
it works now, read the 3rd post...

The Object of war is not to die for your country but make the other guy die for his

Login to post a reply

Server time is: 2026-07-25 08:30:09
Your offset time is: 2026-07-25 08:30:09