04.03.2011, 22:13
The players are associated with the house's, and the house's need to be associated with the players
For that we only need one file ("houses.txt")
There we could add the owernames like ("house_x = name")
Or we just add the names and the line count is the houseid
And if the guy removes now his account we read his houseid and he got one we set the ownername to empty
(You could use 0's (not owned) and 1's (owned) instead of the ownername but maybe you need it for some kind of message)
For that we only need one file ("houses.txt")
There we could add the owernames like ("house_x = name")
Or we just add the names and the line count is the houseid
And if the guy removes now his account we read his houseid and he got one we set the ownername to empty
(You could use 0's (not owned) and 1's (owned) instead of the ownername but maybe you need it for some kind of message)