28.02.2013, 13:50
for fetching float values you must declare the enumerators X,Y and Z as float or Double depending Upon the precision of decimal points. Also for fetching float or double values from MySQL, you need to use mysql_fetch_float() function. otherwise, the decimal point values wont be loaded properly to the variables
Like this as an example
format(playerQuery, sizeof(playerQuery), "SELECT X FROM `tablename` LIMIT 1 ");
mysql_query(playerQuery);
mysql_store_result();
mysql_fetch_float(Doors[l][X]);
mysql_free_result();
Like this as an example
format(playerQuery, sizeof(playerQuery), "SELECT X FROM `tablename` LIMIT 1 ");
mysql_query(playerQuery);
mysql_store_result();
mysql_fetch_float(Doors[l][X]);
mysql_free_result();