24.03.2013, 10:42
Hey,
Which Command can I use for Get float in R7?
mysql_fetch_float(sqlfloat); // It dosn't works in R7!
Any ideas
Which Command can I use for Get float in R7?
Code:
stock Float:mysql_GetFloat(Table[], Field[], Where[], Is[]) { new Query[128], Float:sqlfloat; mysql_real_escape_string(Table, Table); mysql_real_escape_string(Field, Field); mysql_real_escape_string(Where, Where); mysql_real_escape_string(Is, Is); format(Query, sizeof(Query), "SELECT `%s` FROM `%s` WHERE `%s` = '%s'", Field, Table, Where, Is); mysql_function_query(MYSQLConnection,Query,true,"QueryFinished",""); mysql_store_result(); mysql_fetch_float(sqlfloat); mysql_free_result(); return sqlfloat; }
Any ideas