Mysql Fetch Problem.
#1

I've got this code:

pawn Код:
format(query, 256, "SELECT House-CoordsX FROM houses WHERE House-ID = '%d'", HouseID2);
mysql_query(query);
mysql_store_result();      
mysql_fetch_float(HouseFloats[HouseID2][HouseCoordsX]);
The problem is that the varible:
HouseFloats[HouseID2][HouseCoordsX];

Gives me 0.000. It looks like the problem is the query although its correct. I dont know whats up with it.
Reply


Messages In This Thread
Mysql Fetch Problem. - by Kyle - 08.11.2010, 15:55
Re: Mysql Fetch Problem. - by Kyle - 08.11.2010, 17:13
Re: Mysql Fetch Problem. - by baske007 - 08.11.2010, 17:17
Re: Mysql Fetch Problem. - by Kyle - 08.11.2010, 17:18
Re: Mysql Fetch Problem. - by legho - 08.11.2010, 17:18
Re: Mysql Fetch Problem. - by Kyle - 08.11.2010, 17:20
Re: Mysql Fetch Problem. - by baske007 - 08.11.2010, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)