|
| 25 Mar 2014 03:22 PM |
| I've been creating a game and I have universes. I want to save created places in a table on the data store but i'm struggling how to save them and then how to get the whole list later on |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2014 03:23 PM |
| My main issue is I don't know how to use Arbituary Tables |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2014 03:26 PM |
Table = {bla,bla,bla} Utils = assert(LoadLibrary("RbxUtility")) DS = game.DataStoreService:GetDataStore("YourDataStore")
DS:SaveString("Bla" Utils.EncodeJSON(Table))
-- And to decode it
NewVariable = Utils.DecodeJSON(DS:LoadString("Bla")) -- That will return a table
For more information on JSON: Visit http://wiki.roblox.com/index.php?title=JSON |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2014 03:28 PM |
| Okay thank you for clearing it up for me ;) |
|
|
| Report Abuse |
|
|