How to optimize this function?
#1

Hi, this is my first post here well I found you, I went from R39-6 to R41-4
I have a problem as well as I do not know how to optimize these functions, if you help me to stay satisfied, I'm sorry for my bad English.

PHP код:
/////////// This is in OnGameModeInit
    
mysql_tqueryg_SQL"SELECT * FROM `clanVehicles` ORDER BY `clanVehicleID` ASC""LoadClanVehicles""" );
    
mysql_tquery(g_SQL"SELECT * FROM `bizz`""LoadBizz""");
////////////
public LoadBizz()  
{
    new 
PropertyString[256],locked[20];
    
bussines cache_num_rows();
    for(new 
1<= bussinesi++)
    {
        new 
1;
        
cache_get_value_int(b"ID"BizzInfo[i][bID]);
        
cache_get_value_int(b"Owned"BizzInfo[i][bOwned]);
        
cache_get_value_name(b"Owner"BizzInfo[i][bOwner], 130);
        }
    
printf("[LOADING] %d businesses loaded."bussines);
    return 
true;
}
function 
LoadClanVehicles( ) {
        new 
rowsi;
        
cache_get_row_count(rows);
        for(new 
iserverClanVehiclesi++) {
        
cache_get_value_int(i"clanVehicleID"clanVehiclesVariables[i][clanVehicleID]);
        
cache_get_value_int(i"clanVehicleClan"clanVehiclesVariables[i][clanVehicleClan]);
        
cache_get_value_int(i"clanVehicleRank"clanVehiclesVariables[i][clanVehicleRank]);
        
cache_get_value_int(i"clanVehicleModel"clanVehiclesVariables[i][clanVehicleModel]);
        
cache_get_value_int(i"clanVehicleColor1"clanVehiclesVariables[i][clanVehicleColor1]);
        
cache_get_value_int(i"clanVehicleColor2"clanVehiclesVariables[i][clanVehicleColor2]);
        
cache_get_value_float(i"clanVehicleX"clanVehiclesVariables[i][clanVehicleX]);
        
cache_get_value_float(i"clanVehicleY"clanVehiclesVariables[i][clanVehicleY]);
        
cache_get_value_float(i"clanVehicleZ"clanVehiclesVariables[i][clanVehicleZ]);
        
cache_get_value_float(i"clanVehicleA"clanVehiclesVariables[i][clanVehicleA]);
        
createClanVehicle);
    } 
printf"Clan Vehicles: %d"serverClanVehicles );
    return 
true; } 
Reply


Messages In This Thread
How to optimize this function? - by liptakrazvan - 01.03.2018, 10:41
Re: How to optimize this function? - by liptakrazvan - 27.03.2018, 06:26
Re: How to optimize this function? - by ForCop - 27.03.2018, 09:07
Re: How to optimize this function? - by Sithis - 27.03.2018, 09:23
Re: How to optimize this function? - by liptakrazvan - 23.04.2018, 10:46
Re: How to optimize this function? - by UFF - 23.04.2018, 11:00
Re: How to optimize this function? - by Dayrion - 23.04.2018, 11:43

Forum Jump:


Users browsing this thread: 3 Guest(s)