House system info issue
#6

Quote:
Originally Posted by jihadmeneer
Посмотреть сообщение
Show us where House_Refresh(houseid) is called.
on "Houseload"

PHP код:

forward House_Load
();
public 
House_Load()
{
    static
        
rows,
        
fields,
        
str[128];
    
cache_get_data(rowsfieldsg_iHandle);
    for (new 
0rows++) if (MAX_HOUSES)
    {
        
HouseData[i][houseExists] = true;
        
HouseData[i][houseLights] = false;
        
HouseData[i][houseID] = cache_get_field_int(i"houseID");
        
HouseData[i][houseOwner] = cache_get_field_int(i"houseOwner");
        
HouseData[i][housePrice] = cache_get_field_int(i"housePrice");
        
cache_get_field_content(i"houseAddress"HouseData[i][houseAddress], g_iHandle32);
        
HouseData[i][housePos][0] = cache_get_field_float(i"housePosX");
        
HouseData[i][housePos][1] = cache_get_field_float(i"housePosY");
        
HouseData[i][housePos][2] = cache_get_field_float(i"housePosZ");
        
HouseData[i][housePos][3] = cache_get_field_float(i"housePosA");
        
HouseData[i][houseInt][0] = cache_get_field_float(i"houseIntX");
        
HouseData[i][houseInt][1] = cache_get_field_float(i"houseIntY");
        
HouseData[i][houseInt][2] = cache_get_field_float(i"houseIntZ");
        
HouseData[i][houseInt][3] = cache_get_field_float(i"houseIntA");
        
HouseData[i][houseInterior] = cache_get_field_int(i"houseInterior");
        
HouseData[i][houseExterior] = cache_get_field_int(i"houseExterior");
        
HouseData[i][houseExteriorVW] = cache_get_field_int(i"houseExteriorVW");
        
HouseData[i][houseLocked] = cache_get_field_int(i"houseLocked");
        
HouseData[i][houseMoney] = cache_get_field_int(i"houseMoney");
        for (new 
010++)
        {
            
format(str24"houseWeapon%d"1);
            
HouseData[i][houseWeapons][j] = cache_get_field_int(istr);
            
format(str24"houseAmmo%d"1);
            
HouseData[i][houseAmmo][j] = cache_get_field_int(istr);
        }
        
House_Refresh(i);
    }
    for (new 
0MAX_HOUSES++) if (HouseData[i][houseExists]) {
        
format(strsizeof(str), "SELECT * FROM `housestorage` WHERE `ID` = '%d'"HouseData[i][houseID]);
        
mysql_tquery(g_iHandlestr"OnLoadStorage""d"i);
        
format(strsizeof(str), "SELECT * FROM `furniture` WHERE `ID` = '%d'"HouseData[i][houseID]);
        
mysql_tquery(g_iHandlestr"OnLoadFurniture""d"i);
    }
    return 
1;

Reply


Messages In This Thread
House system info issue - by DemME - 29.10.2015, 14:24
Re: House system info issue - by kamiliuxliuxliux - 29.10.2015, 14:26
Re: House system info issue - by DemME - 29.10.2015, 14:28
Re: House system info issue - by kamiliuxliuxliux - 29.10.2015, 14:31
Re: House system info issue - by jihadmeneer - 29.10.2015, 14:31
Re: House system info issue - by DemME - 29.10.2015, 14:32
Re: House system info issue - by DemME - 29.10.2015, 14:35
Re: House system info issue - by jihadmeneer - 29.10.2015, 14:36
Re: House system info issue - by DemME - 29.10.2015, 14:37
Re: House system info issue - by jihadmeneer - 29.10.2015, 14:40

Forum Jump:


Users browsing this thread: 4 Guest(s)