animated_ginger
Member
Hello all!
I've been running across this problem all day and I still can't figure out why this is not working.
I'm trying to add a value to the list and then save it to an ini file. Problem is, it saves a value like "nan" or "inf".
And I'm only testing out to see if this will save values. I'm planning on the future for it to save weapons that you unlock.
Not sure if it's because I'm not understanding something properly or what
But here is what i'm doing.
Please let me know what I should do!
I've been running across this problem all day and I still can't figure out why this is not working.
I'm trying to add a value to the list and then save it to an ini file. Problem is, it saves a value like "nan" or "inf".
And I'm only testing out to see if this will save values. I'm planning on the future for it to save weapons that you unlock.
Not sure if it's because I'm not understanding something properly or what
But here is what i'm doing.
Code:
var val;
ini_open("save.ini");
list = ds_list_create();
ds_list_add(list, 1);
val = ds_list_write(list);
ini_write_real("Lists", "0", val);
ds_list_clear(list);
ini_close();