MySQL Loading
#1

Hello guys, I'm using the latest MySQL version, but when I load it, it works only for the callback, that I'm loading in it! Is it possible somethink like when I load at the start script it will be loaded for all commands, callbacks?
It is loading, I'm using it in the same callback, where it is loaded, but when I'm using it in command it is always "0".
The code (OnGameModeInit callback):
PHP код:
for(new 1cache_num_rows(); h++)
    {
          
mysql_format(zMySQLquerysizeof(query), "SELECT * FROM `houses` WHERE `ID` = %d"h);
          
mysql_tquery(zMySQLquery"LoadHouses""i"h);
    } 
And there is my loading callback:
PHP код:
forward LoadHouses(houseid);
public 
LoadHouses(houseid)
{
    new 
NumRows;
    
cache_get_row_count(NumRows);
    if(
numRows != 0)
    {
        for(new 
0NumRowsi++)
        {
            
cache_get_value_name(i"Position:X"HouseInfo[i][hX]);
            
printf("%f"HouseInfo[i][hX]);
        }
    }
    return 
1;

This result is printed CORRECT, but when I'm using this variable or another callback in command it prints "0"!
Reply


Messages In This Thread
MySQL Loading HELP AGAIN!!! - by Kraeror - 06.01.2018, 10:49
Re: MySQL Loading - by Kane - 06.01.2018, 11:05
Re: MySQL Loading - by Kraeror - 06.01.2018, 11:23
Re: MySQL Loading - by Kraeror - 06.01.2018, 11:32
Re: MySQL Loading - by Kane - 06.01.2018, 11:57
Re: MySQL Loading - by Kraeror - 06.01.2018, 12:10
Re: MySQL Loading - by Kraeror - 07.01.2018, 10:42
Re: MySQL Loading - by Kraeror - 07.01.2018, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)