Das ist bei jedem stock drinne.
Hier als Beispiel:
stock mysql_GetInt(Table[], Field[], Where[], Is[])
{
new query[128];
mysql_real_escape_string(Table, Table);
mysql_real_escape_string(Field, Field);
mysql_real_escape_string(Where, Where);
mysql_real_escape_string(Is, Is);
mysql_format(dbhandle, query, 128, "SELECT `%s` FROM `%s` WHERE `%s` = '%s'", Field, Table, Where, Is);
mysql_tquery(dbhandle, query, "", ""); //MYSQL_FIX
mysql_store_result();
new sqlint = cache_get_row_float();
mysql_free_result();
return sqlint;
}
Soll ich das dann zu dem machen?:
stock mysql_GetInt(Table[], Field[], Where[], Is[])
{
new query[128];
mysql_format(dbhandle, query, 128, "SELECT `%s` FROM `%s` WHERE `%s` = '%s'", Field, Table, Where, Is);
mysql_tquery(dbhandle, query, "", ""); //MYSQL_FIX
mysql_store_result();
new sqlint = cache_get_row_float();
mysql_free_result();
return sqlint;
}