Houses not loading (MySQL)
#3

Код:
		hInfo[i][HID] = cache_get_field_content_int(i, "ID");
		cache_get_field_content(i, "Owner", hInfo[i][Owner], mysql);

		hInfo[i][Owned] = cache_get_field_content_int(i, "Owned");
		hInfo[i][Locked] = cache_get_field_content_int(i, "Locked");
		hInfo[i][Price] = cache_get_field_content_int(i, "Price");

		hInfo[i][OX] = cache_get_field_content_float(i, "OX");
		hInfo[i][OY] = cache_get_field_content_float(i, "OY");
		hInfo[i][OZ] = cache_get_field_content_float(i, "OZ");


		hInfo[i][World] = cache_get_field_content_int(i, "World");
		hInfo[i][OnSale] = cache_get_field_content_int(i, "OnSale");


		hInfo[i][InteriorID] = cache_get_field_content_int(i, "InteriorID");
Use something like that instead of that think you made with strval, strval converts a string into an integer but not a float, which means that the position will always be 0 the way you made it. That one should work
Reply


Messages In This Thread
Houses not loading (MySQL) - by FunnyBear - 07.03.2015, 17:59
Re: Houses not loading (MySQL) - by Misiur - 07.03.2015, 20:53
Re: Houses not loading (MySQL) - by FOTIS6 - 07.03.2015, 21:37
Re: Houses not loading (MySQL) - by FunnyBear - 07.03.2015, 23:14
Re: Houses not loading (MySQL) - by Luca12 - 07.03.2015, 23:25
Re: Houses not loading (MySQL) - by Misiur - 07.03.2015, 23:47
Re: Houses not loading (MySQL) - by StarPeens - 08.03.2015, 00:34

Forum Jump:


Users browsing this thread: 4 Guest(s)