Help to update MYSQL plugin
#6

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:
pawn Код:
if (cache_num_rows())
{
    // there are rows..
}
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:
pawn Код:
cache_get_value_int(0, "admin", admin[playerid]);
Reply


Messages In This Thread
Help to update MYSQL plugin - by ubunttu - 16.10.2016, 00:34
Re: Help to update MYSQL plugin - by ubunttu - 16.10.2016, 07:53
Re: Help to update MYSQL plugin - by Konstantinos - 16.10.2016, 09:21
Re: Help to update MYSQL plugin - by Gotham - 16.10.2016, 10:25
Re: Help to update MYSQL plugin - by ubunttu - 16.10.2016, 15:00
Re: Help to update MYSQL plugin - by Konstantinos - 16.10.2016, 15:17
Re: Help to update MYSQL plugin - by pdonald - 17.10.2016, 01:22
Re: Help to update MYSQL plugin - by Konstantinos - 17.10.2016, 10:04
Re: Help to update MYSQL plugin - by ubunttu - 17.10.2016, 12:57
Re: Help to update MYSQL plugin - by Konstantinos - 17.10.2016, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)