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 / Help!! I keep getting syntax errors!

Author
Message
C0braK1ng
16
Years of Service
User Offline
Joined: 18th May 2010
Location:
Posted: 19th May 2010 02:51
Please help.

Whenever i try to compile and run my programs it gives me this in the output: Compilation Failed(syntax errors)

Its very frustrating!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th May 2010 15:24
I suggest you post your code so we can help, unless you just wanted some sympathy... in which case that sucks dude!



Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th May 2010 15:43
Quote: "unless you just wanted some sympathy... in which case that sucks dude!"

Ouch! lol

Pretty funny.

My signature is NOT a moderator plaything! Stop changing it!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th May 2010 16:03
Quote: "Ouch!"

Did that come across as harsh? Sorry I have a nasty sense of humour sometimes (not intended)...

C0braK1ng
16
Years of Service
User Offline
Joined: 18th May 2010
Location:
Posted: 19th May 2010 16:50
Im new here so how do i post code?
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th May 2010 16:53
Not harsh, but extremely funny! lol (l like sarcastic humour!)

My signature is NOT a moderator plaything! Stop changing it!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th May 2010 17:02 Edited at: 19th May 2010 17:04
Quote: "Im new here so how do i post code?"

1- Just write something like 'Here is my code:'
2- Click the 'code' button in the top right corner of the "Post Forum Message" box (at the bottom of this screen)
3- Paste in your code
4- Click the code button again

It should look something like the image below!



EDIT: if you want it to look a little more colourful change {code} (in square brackets) to {code lang=dbp} (in square brackets)

C0braK1ng
16
Years of Service
User Offline
Joined: 18th May 2010
Location:
Posted: 19th May 2010 18:12
Here's my code:



This is one program i tried. But any program i try (even example programs) doesn't work! It comes up with the same thing. Is it something wrong with the program? I have DBPro Free.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th May 2010 18:18 Edited at: 19th May 2010 18:20
Quote: "
set display mode 800,600,16
cls
print "Hello World!"
wait key
"

Well, they don't come much simpler than that...

It should work fine. I'd suggest un-installing then re-installing DBPro as it sounds like something went wrong with the installation to me.

EDIT: Sorry for replying before your post has been passed by the moderators, might be confusing to future readers of this post (maybe your post will be put in before this one once it has been passed...)

C0braK1ng
16
Years of Service
User Offline
Joined: 18th May 2010
Location:
Posted: 19th May 2010 18:56
Ok i tried uninstalling and then reinstalling it but it still does the same thing. It says:
Compiling project...
Failed to 'LoadDBA'
Compilation Failed(Syntax Errors)

What is wrong!!!! Ahhh
C0braK1ng
16
Years of Service
User Offline
Joined: 18th May 2010
Location:
Posted: 19th May 2010 20:26
Is there a problem with Dark Basic Pro Free? I can't figure it out?

P.S. baxslash how did you know what i posted before it was there? ?
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 20th May 2010 10:43
Quote: "Is there a problem with Dark Basic Pro Free? I can't figure it out?"

Not that I am aware of, it could be that you are not including the files correctly but considering this is happening multiple times and on very simple code I'd be surprised...

I would try one of the other DBPro editors out there, maybe 'codesurge' or 'Synergy' (type the names into the search bar), maybe there's a problem with the IDE.

Quote: "P.S. baxslash how did you know what i posted before it was there? ?"

I'm psychic... and I got your reply via E-mail automatically before it was passed by the MOD squad.

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th May 2010 11:16
The error looks like it's trying to load a function from somewhere?

Does this happen when you create a new blank project?
Have you properly registered DBP?
Has it ever worked?

what happens if you try and run someone elses code? (However simple, try the attached sample code)

My signature is NOT a moderator plaything! Stop changing it!
C0braK1ng
16
Years of Service
User Offline
Joined: 18th May 2010
Location:
Posted: 20th May 2010 17:51 Edited at: 21st May 2010 15:33
Yay! I downloaded Codesurge and it works perfect! EDIT:Almost.
Thanks for the help.

Quote: "Does this happen when you create a new blank project?
Have you properly registered DBP?
Has it ever worked?"


In DBPro it does happen even with new blank project. I have properly registered DBP. It has never worked.

Login to post a reply

Server time is: 2026-07-25 16:18:47
Your offset time is: 2026-07-25 16:18:47