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 / save array help

Author
Message
Guitarman
21
Years of Service
User Offline
Joined: 31st Jan 2004
Location:
Posted: 23rd Apr 2005 22:08
Alright so I'm writing a level editor program and I am having trouble saving an array containing the object position, andles, and sizes. I use the
and it doesn't work. Any ideas? Thanks!
heartbone
22
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 23rd Apr 2005 23:25
Below is actual code from Intership

Peace, the anti-Bush.
heartbone
22
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 23rd Apr 2005 23:30
Another example.


Peace, the anti-Bush.
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 24th Apr 2005 01:12 Edited at: 24th Apr 2005 01:23
Here is how I coded it for my Tile Editor.




created by "Lord ShitNipple"
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 24th Apr 2005 01:54
Try if this works:

`Save_Array
if File exist("test") then delete file "test"
save array "test",testarray(0)

`Load_Array
dim testarray(100,9)
load array "test",testarray(0)

For some reason it needs to have just a 0 as subscript.

Desktop: AMD Athlon XP2800+,Radeon 9800 128MB, 1GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 24th Apr 2005 03:32
(0,0) will work too


created by "Lord ShitNipple"

Login to post a reply

Server time is: 2025-06-01 01:56:28
Your offset time is: 2025-06-01 01:56:28