03.07.2018, 13:13
Hello, I'm making a house system.. the house is made fine, data is also stored in MySQL..
But when the server restarts, it isn't getting the data from MySQL(House checkpoint gets destroyed, and isn't being retrieved from MySQL)
Here's my code under OnGameModeInit
Completely unsure if it should work or not, but someone told me it would work fine..
But when the server restarts, it isn't getting the data from MySQL(House checkpoint gets destroyed, and isn't being retrieved from MySQL)
Here's my code under OnGameModeInit
Код:
for(new i = 0; i < MAX_HOUSES; i++) { hInfo[i][HouseEX] = cache_get_field_content_float(0, "HouseEX"); hInfo[i][HouseEY] = cache_get_field_content_float(0, "HouseEY"); hInfo[i][HouseEZ] = cache_get_field_content_float(0, "HouseEZ"); cache_get_field_content_int(0, "HouseID", hInfo[i][HouseID]); hInfo[i][HouseCP] = CreateDynamicCP(hInfo[i][HouseEX], hInfo[i][HouseEZ], hInfo[i][HouseEZ], 1.5, .worldid = 0, .interiorid = 0, .streamdistance = 20.0); }