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 / A work in progress

Author
Message
Edgel
20
Years of Service
User Offline
Joined: 5th Jul 2006
Location: U.S.A
Posted: 6th Jul 2006 17:19
Ok. So I've made a monopoly "game saver." Basically the user plugs in the specs for each player, including deeds, money, and any addtional notes. This is the rough draft of it, before i make a gui or even game variations. My problem is, the code comes up with an error.
Here is the code:


the error msg i get is "Syntax Error. Cannot evaluate due to irregular brackets at line 25"

I would really appreate what that error is telling me and what mistake did i put in the code.
Edgel
20
Years of Service
User Offline
Joined: 5th Jul 2006
Location: U.S.A
Posted: 6th Jul 2006 18:43
Sorry about the code I just posted, the real code is here:

fixed the saving parts a bit... but the error remains
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 7th Jul 2006 14:42
The problem is DBC. You can't store data directly from input to an array.

You'll need to do something like:


And you might have noticed the $ symbol. That's because you're asking for a name, and a name is a string. Without the $, the array can only contain integer values, and not strings. (nothing = integer, # = float, $ = string)
And ofcourse, this means that you'll have to use
dim player$(p, 3) instead of dim player(p, 3)

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.

Login to post a reply

Server time is: 2026-07-06 18:33:56
Your offset time is: 2026-07-06 18:33:56