retrieving data MySQL R39
#1

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
Код:
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);
		}
Completely unsure if it should work or not, but someone told me it would work fine..
Reply


Messages In This Thread
retrieving data MySQL R39 - by div - 03.07.2018, 13:13
Re: retrieving data MySQL R39 - by Calisthenics - 03.07.2018, 13:47
Re: retrieving data MySQL R39 - by div - 03.07.2018, 14:02
Re: retrieving data MySQL R39 - by Calisthenics - 03.07.2018, 14:04
Re: retrieving data MySQL R39 - by div - 03.07.2018, 14:20
Re: retrieving data MySQL R39 - by CodeStyle175 - 03.07.2018, 14:25
Re: retrieving data MySQL R39 - by div - 03.07.2018, 14:26
Re: retrieving data MySQL R39 - by div - 03.07.2018, 14:39
Re: retrieving data MySQL R39 - by div - 03.07.2018, 16:00
Re: retrieving data MySQL R39 - by Calisthenics - 03.07.2018, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)