I had a pretty silly mistake when I first started using the ini save functions. I would write some save data like this:
Code:
ini_write_real("Save", "Player", global.signed_up);
The above saves the value of global.signed_up under "Player" in my ini file.
But then would try to load or read it like this:
Code:
ini_read_real("Save", "Player", global.signed_up);
the third argument to the above function is a default and I can't remember what the exact issue was, but for some reason it was setting it back to my original empty string (even though I assumed there was data under "player".
This is what it should have been:
Code:
sign_save = ini_read_real("Save", "Player", 0);
global.signed_up = sign_save;
This reads the value saved under "Player" into my variable sign_save.