MySQL Loading
#2

Where is cache_num_rows coming from in OnGameModeInit()?

An example of a proper loading:

PHP код:
public OnGameModeInit(){
    
mysql_tquery(DB"SELECT * FROM `houses` ORDER BY `dbid` ASC""Thread_LoadHouses"); 
    return 
1;
}
Thread_LoadHouses(); public Thread_LoadHouses()
{
    if (!
cache_num_rows()) {
        return 
1;
    }
    for (new 
10cache_num_rows(); i++, j++) {
        
cache_get_value_float(j"HousePosX"Houses[i][HousePos][0]);
        
cache_get_value_float(j"HousePosY"Houses[i][HousePos][1]);
        
cache_get_value_float(j"HousePosZ"Houses[i][HousePos][2]);
    }
    return 
1;

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: 1 Guest(s)