Values from ini are cast back to float, int, bool, or null from string when loading to DataStore.
The filename of the ini doesn't have to match the name of the DataStore table. The table name is stored as a [Section] in the ini.
Use like this:
JavaScript:
var ini = Plugin.CreateIni("saveTable");
DataStore.ToIni("someTable", ini);
if (Plugin.IniExists("otherSave")) {
var ini = Plugin.GetIni("otherSave");
DataStore.FromIni("otherTable", ini);
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.