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 / Saving a type array

Author
Message
Divided
FPSC Reloaded TGC Backer
4
Years of Service
User Offline
Joined: 31st Oct 2013
Location:
Posted: 17th Nov 2016 11:12
Hey guys, don't know how active the DarkBasic community is these days but I find that DB is literally the best language ever to make a text based game which AppGameKit doesn't provide or at least is VERY limited due to not having console input etc...

on the question:

I've found myself in need of saving an array of types which i've named objects.
the follow is the type code:


next up is the AddObject function which simply adds a text item into an array:


and lastly, is the PrintObjects function which will simply display the name of each item within an array.


when I run the code, my error is:
Quote: " Runtime Error 54 - Array type is invalid at line 234 "

I know that doesn't mean or help much but maybe i'm wrong. Cheers!

Real programmers don't comment their code, because if it was hard to write it must be hard to read!

- PixHil Entertainment
Download Pixel Smasher on the App Store today!

Login to post a reply

Server time is: 2018-04-26 12:03:01
Your offset time is: 2018-04-26 12:03:01