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 / Why doesnt this work!? bug?

Author
Message
kfoong
23
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 3rd May 2003 06:35
The DBPro compiler says that theres an error in my game.

"Array must include a set of brackets at line 25"

and this is at line 25

x#(1000)

I'm sure you're all thinking "Then check for an array with no brackets!". My game is pretty small (around 50 lines ) so I can check through easily and found no arrays with no brackets. I've been at this for around 15 mins already with no success. SO do you think this is a bug?
Quote from my brother:
Quote: " Patience is a virtue... I know that but how does that help me? "

http://www.stellarblue.vze.com/
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd May 2003 07:49
post the code if its small and not sensitive to your requirements

kfoong
23
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 3rd May 2003 08:30
just put this in dbpro:



Quote from my brother:
Quote: " Patience is a virtue... I know that but how does that help me? "

http://www.stellarblue.vze.com/
iac249
23
Years of Service
User Offline
Joined: 26th Mar 2003
Location: USA
Posted: 3rd May 2003 09:24
You have to precede your array declaration with DIM
kfoong
23
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 3rd May 2003 09:26
it does have a dim if you havent seen

Quote from my brother:
Quote: " Patience is a virtue... I know that but how does that help me? "

http://www.stellarblue.vze.com/
kfoong
23
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 3rd May 2003 09:30
ahah! i see my mistake! take a look at the y(1000), if you look carefully it has a "{" instead of the "("! Thanks every one for their help!

Quote from my brother:
Quote: " Patience is a virtue... I know that but how does that help me? "

http://www.stellarblue.vze.com/
AtomR
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Portugal
Posted: 3rd May 2003 10:58
Man, how could u have missed that?? Imagine when you have a real bug in your game. LOL

Take care
AtomR
kfoong
23
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 3rd May 2003 16:10
I have met a 'real' bug. heh... took my nearly a week to find out what was wrong! did you pick up the '{' mistake when you first saw my little snippet?

Quote from my brother:
Quote: " Patience is a virtue... I know that but how does that help me? "

http://www.stellarblue.vze.com/

Login to post a reply

Server time is: 2026-07-11 22:25:15
Your offset time is: 2026-07-11 22:25:15