27.11.2015, 05:52
Quote:
The id stored in the database is only there to uniquely identify that particular row. It does not have any intrinsic value. In the houseInfo enum you should add another attribute "databaseID" or something like that to store this id. When you go to update you use that value, NOT the array index.
However, to me it always seems silly to duplicate the data to the gamemode when it's already stored in the database. In many cases you can and should go directly to the database. |