Help to update MYSQL plugin
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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]);
I'm trying to update too...
Ty to your helps, it help me too
+rep

But i have a question..

I got this problem:
to load
int =
Код:
cache_get_value_int(0, "rank1", FactionInfo[factionid][rank1]);
to load
floats =
Код:
cache_get_value_float(0, "HQposX", FactionInfo[factionid][HQposX]);
But and to load strings? (varcharts) what need to do?
I made it, but its return me errors
Код:
cache_get_value_name(0, "member1", FactionInfo[factionid][member1],1,30);
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: 3 Guest(s)