14.02.2014, 16:00
Well, SaveHouses just loops from 0 to what I assume is the max houses array size (1000).
I recommend adding a new variable to the house info which determines if the house is created or not, and save/load based on that variable.
Also, your save code uses %s on all fields, while some are floats and other are integers,
And your load code uses strval on all fields, while some are strings and others are floats.
I recommend adding a new variable to the house info which determines if the house is created or not, and save/load based on that variable.
Also, your save code uses %s on all fields, while some are floats and other are integers,
And your load code uses strval on all fields, while some are strings and others are floats.