16.10.2016, 15:17
For mysql_function_query, add the macro I posted in a_mysql.inc or in your script.
cache_get_row_count has 1 parameter which is passed by reference (to store the number of rows) and it's not the connection handle. You can simply use cache_num_rows with no parameters as well:
and cache_get_field_content_int becomes cache_get_value_name_int or cache_get_value_int and it returns 0/1 for failure/success, this means that the result is passed by reference again:
cache_get_row_count has 1 parameter which is passed by reference (to store the number of rows) and it's not the connection handle. You can simply use cache_num_rows with no parameters as well:
pawn Код:
if (cache_num_rows())
{
// there are rows..
}
pawn Код:
cache_get_value_int(0, "admin", admin[playerid]);