Mysql Trouble
#6

`cache_get_data` used to pass by reference the row count. You can just do:
pawn Code:
if (cache_num_rows())
{
    // cache functions to retrieve
}
or
pawn Code:
new rows;

cache_get_row_count(rows);

if (rows)
{
    // cache functions to retrieve
}
Do not use `mysql_fetch_field_row` macro or whatever that is and then converting to integet/float using `strval` or `floatstr`. There are `cache_get_value_int` and `cache_get_value_float` functions.
Reply


Messages In This Thread
Mysql Trouble - by DyduShxD - 26.01.2019, 19:28
Re: Mysql Trouble - by Calisthenics - 26.01.2019, 19:31
Re: Mysql Trouble - by DyduShxD - 26.01.2019, 19:34
Re: Mysql Trouble - by Calisthenics - 26.01.2019, 19:43
Re: Mysql Trouble - by DyduShxD - 26.01.2019, 19:47
Re: Mysql Trouble - by Calisthenics - 26.01.2019, 19:52
Re: Mysql Trouble - by DyduShxD - 26.01.2019, 20:03
Re: Mysql Trouble - by Kane - 26.01.2019, 20:10
Re: Mysql Trouble - by DyduShxD - 26.01.2019, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)