Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Проблема с бизнесами/домами.

Статус
В этой теме нельзя размещать новые ответы.

entinus

Ученик
При покупке бизнеса появляется информация:
Название бизнеса: 24/7 [К примеру]
Владелец: Test_Testov
Продукты: 120
И так далее.
Но когда происходит рестарт вся информация пропадает:
Название бизнеса: [Пусто]
Владелец: [Пусто]
И так далее.
Та же проблема с домами.
Покупаешь дом, информация присутствует.
После рестарта, информация пропадает, и маркер, становится зеленым [На карте тоже]
Вот загрузка бизнесов:
PHP:
public LoadBusiness() 
{ 
    new rows, fields, temp[256],time = GetTickCount(),str[256]; 
    cache_get_data(rows, fields); 
    if(rows) 
    { 
        for(new b = 0; b < rows; b++) 
        { 
            cache_get_field_content(b, "id", temp), BusinessInfo[b][bID] = strval (temp); 
            cache_get_field_content(b, "owner", BusinessInfo[b][bOwner], dbHandle); 
            cache_get_field_content(b, "name", BusinessInfo[b][bName], dbHandle); 

            cache_get_field_content(b, "owned", temp), BusinessInfo[b][bOwned] = strval (temp); 
            cache_get_field_content(b, "price", temp), BusinessInfo[b][bPrice] = strval (temp); 
            cache_get_field_content(b, "bank", temp), BusinessInfo[b][bBank] = strval (temp); 
            cache_get_field_content(b, "prod", temp), BusinessInfo[b][bProd] = strval (temp); 
            cache_get_field_content(b, "day", temp), BusinessInfo[b][bDay] = strval (temp); 
            cache_get_field_content(b, "type", temp), BusinessInfo[b][bType] = strval (temp); 
            cache_get_field_content(b, "cena", temp), BusinessInfo[b][bCena] = strval (temp); 
            cache_get_field_content(b, "mafia", temp), BusinessInfo[b][bMafia] = strval (temp); 
            cache_get_field_content(b, "price_prod", temp), BusinessInfo[b][bPriceProd] = strval (temp); 
            cache_get_field_content(b, "int", temp), BusinessInfo[b][bInt] = strval (temp); 
            cache_get_field_content(b, "vw", temp), BusinessInfo[b][bVW] = strval (temp); 
            cache_get_field_content(b, "lock", temp), BusinessInfo[b][bLock] = strval (temp); 
            cache_get_field_content(b, "mapicon", temp), BusinessInfo[b][bMapIcon] = strval (temp); 
            cache_get_field_content(b, "actor_model", temp), BusinessInfo[b][bActorModel] = strval (temp); 
             
            cache_get_field_content(b, "enter_x", temp), BusinessInfo[b][bEnterX] = floatstr (temp); 
            cache_get_field_content(b, "enter_y", temp), BusinessInfo[b][bEnterY] = floatstr (temp); 
            cache_get_field_content(b, "enter_z", temp), BusinessInfo[b][bEnterZ] = floatstr (temp); 
            cache_get_field_content(b, "exit_x", temp), BusinessInfo[b][bExitX] = floatstr (temp); 
            cache_get_field_content(b, "exit_y", temp), BusinessInfo[b][bExitY] = floatstr (temp); 
            cache_get_field_content(b, "exit_z", temp), BusinessInfo[b][bExitZ] = floatstr (temp); 
            cache_get_field_content(b, "buy_x", temp), BusinessInfo[b][bBuyX] = floatstr (temp); 
            cache_get_field_content(b, "buy_y", temp), BusinessInfo[b][bBuyY] = floatstr (temp); 
            cache_get_field_content(b, "buy_z", temp), BusinessInfo[b][bBuyZ] = floatstr (temp); 
            cache_get_field_content(b, "actor_x", temp), BusinessInfo[b][bActorX] = floatstr (temp); 
            cache_get_field_content(b, "actor_y", temp), BusinessInfo[b][bActorY] = floatstr (temp); 
            cache_get_field_content(b, "actor_z", temp), BusinessInfo[b][bActorZ] = floatstr (temp); 
            cache_get_field_content(b, "actor_a", temp), BusinessInfo[b][bActorA] = floatstr (temp); 
             TotalBusiness++; 
              
              
              
             if(BusinessInfo[b][bType] == 1) 
             { 
                 if(BusinessInfo[b][bOwned] == 1) 
                 { 
                    new mafia[64]; 
                    switch(BusinessInfo[b][bMafia]) 
                    { 
                        case 17: mafia = "Russian Mafia"; 
                        case 18: mafia = "La Cosa Nostra"; 
                        case 19: mafia = "Yakuza"; 
                        default: mafia = "Нет"; 
                    } 
                     format(str,sizeof(str), "{D2802D}Название бизнеса: "hWHITE"%s\n{D2802D}Владелец: "hWHITE"%s\n{D2802D}Топлива: "hWHITE"%i {D2802D}л\n{D2802D}Цена за 1 л: "hWHITE"%i$\n{D2802D}Цена за покупку топлива: "hWHITE"%i$\n{D2802D}Крыша: "hWHITE"%s",BusinessInfo[b][bName],BusinessInfo[b][bOwner],BusinessInfo[b][bProd],BusinessInfo[b][bCena],BusinessInfo[b][bPriceProd],mafia); 
                     BusinessInfo[b][bTextInfo] = CreateDynamic3DTextLabel(str, -1,BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ],3.0); 
                    BusinessInfo[b][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ], BusinessInfo[b][bMapIcon], -1, 0, -1, -1, 200.0); 
                } 
                else 
                { 
                    format(str,sizeof(str), "{D2802D}Название бизнеса: "hWHITE"%s\n{D2802D}Стоимость бизнеса: "hGREEN"%i$\n{D2802D}Для покупки бизнеса используйте: "hWHITE"/buybusiness",BusinessInfo[b][bName],BusinessInfo[b][bPrice]); 
                    BusinessInfo[b][bTextInfo] = CreateDynamic3DTextLabel(str, -1,BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ],3.0); 
                       BusinessInfo[b][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ], BusinessInfo[b][bMapIcon], -1, 0, -1, -1, 200.0); 
                } 
            } 
             
            else if(BusinessInfo[b][bType] == 5) 
             { 
                 if(BusinessInfo[b][bOwned] == 1) 
                 { 
                    new mafia[64]; 
                    switch(BusinessInfo[b][bMafia]) 
                    { 
                        case 17: mafia = "Russian Mafia"; 
                        case 18: mafia = "La Cosa Nostra"; 
                        case 19: mafia = "Yakuza"; 
                        default: mafia = "Нет"; 
                    } 
                     format(str,sizeof(str), "{D2802D}Название бизнеса: "hWHITE"%s\n{D2802D}Владелец: "hWHITE"%s\n{D2802D}Цена за билет: "hWHITE"%d$\n{D2802D}Крыша: "hWHITE"%s",BusinessInfo[b][bName],BusinessInfo[b][bOwner],BusinessInfo[b][bCena],mafia); 
                    BusinessInfo[b][bTextInfo] = CreateDynamic3DTextLabel(str, -1,BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],3.0); 
                    BusinessInfo[b][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ], BusinessInfo[b][bMapIcon], -1, 0, -1, -1, 200.0); 
                     BusinessInfo[b][bPickEnter] = CreateDynamicPickup(19132, 23, BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],-1); 
                     BusinessInfo[b][bPickExit] = CreateDynamicPickup(19132, 23, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ],BusinessInfo[b][bVW]); 
                     //BusinessInfo[b][bChek] = CreateDynamicCP(BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ]+0.7,1.0,BusinessInfo[b][bVW],BusinessInfo[b][bInt],-1,5.0); 
                    BusinessInfo[b][bBilet] = CreateDynamic3DTextLabel("Для покупки билета введите: /buy", -1,BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ]+1.5,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,BusinessInfo[b][bID],11); 
                    for(new i = 0; i < 30; i++) 
                    { 
                        BusinessInfo[b][bCompText][i] = CreateDynamic3DTextLabel("свободно", COLOR_GREEN,cs_pos_club[i][0], cs_pos_club[i][1], cs_pos_club[i][2]+1.0,2.5,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,BusinessInfo[b][bID],11); 
                    } 
                } 
                else 
                { 
                    format(str,sizeof(str), "{D2802D}Название бизнеса: "hWHITE"%s\n{D2802D}Стоимость бизнеса: "hGREEN"%i$\n{D2802D}Для покупки бизнеса используйте: "hWHITE"/buybusiness",BusinessInfo[b][bName],BusinessInfo[b][bPrice]); 
                    BusinessInfo[b][bTextInfo] = CreateDynamic3DTextLabel(str, -1,BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],3.0); 
                    BusinessInfo[b][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ], BusinessInfo[b][bMapIcon], -1, 0, -1, -1, 200.0); 
                     BusinessInfo[b][bPickEnter] = CreateDynamicPickup(19132, 23, BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],-1); 
                     BusinessInfo[b][bPickExit] = CreateDynamicPickup(19132, 23, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ],BusinessInfo[b][bVW]); 
                    BusinessInfo[b][bActor] = CreateActor(BusinessInfo[b][bActorModel], BusinessInfo[b][bActorX],BusinessInfo[b][bActorY],BusinessInfo[b][bActorZ],BusinessInfo[b][bActorA]); 
                    BusinessInfo[b][bChek] = CreateDynamicCP(BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ],1.0,BusinessInfo[b][bVW],BusinessInfo[b][bInt],-1,23.0); 
                    //BusinessInfo[b][bBilet] = CreateDynamic3DTextLabel("Бизнес закрыт", -1,BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ]+1.5,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,BusinessInfo[b][bID],11); 
                } 
            } 
             else 
             { 
                 if(BusinessInfo[b][bOwned] == 1) 
                 { 
                     new mafia[64]; 
                    switch(BusinessInfo[b][bMafia]) 
                    { 
                        case 17: mafia = "Russian Mafia"; 
                        case 18: mafia = "La Cosa Nostra"; 
                        case 19: mafia = "Yakuza"; 
                        default: mafia = "Нет"; 
                    } 
                    format(str,sizeof(str), "{D2802D}Название бизнеса: "hWHITE"%s\n{D2802D}Владелец: "hWHITE"%s\n{D2802D}Продуктов: "hWHITE"%i {D2802D}шт\n{D2802D}Цена покупки продуктов: "hWHITE"%i$\n{D2802D}Крыша: "hWHITE"%s",BusinessInfo[b][bName],BusinessInfo[b][bOwner],BusinessInfo[b][bProd],BusinessInfo[b][bPriceProd],mafia); 
                     BusinessInfo[b][bTextInfo] = CreateDynamic3DTextLabel(str, -1,BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],3.0); 
                     BusinessInfo[b][bPickEnter] = CreateDynamicPickup(19132, 23, BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],-1); 
                     BusinessInfo[b][bPickExit] = CreateDynamicPickup(19132, 23, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ],BusinessInfo[b][bVW]); 
                     BusinessInfo[b][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ], BusinessInfo[b][bMapIcon], -1, 0, -1, -1, 200.0); 
                    BusinessInfo[b][bActor] = CreateActor(BusinessInfo[b][bActorModel], BusinessInfo[b][bActorX],BusinessInfo[b][bActorY],BusinessInfo[b][bActorZ],BusinessInfo[b][bActorA]); 

                    if(BusinessInfo[b][bType] != 2) 
                    { 
                        BusinessInfo[b][bChek] = CreateDynamicCP(BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ],1.0,BusinessInfo[b][bVW],BusinessInfo[b][bInt],-1,23.0); 
                    } 
                    else 
                     { 
                        BusinessInfo[b][bChek] = CreateDynamicPickup(1239,23,BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ],BusinessInfo[b][bVW]); 
                    } 
                    SetActorVirtualWorld(BusinessInfo[b][bActor], BusinessInfo[b][bVW]); 
                     
                     
                } 
                else 
                { 
                    format(str,sizeof(str), "{D2802D}Название бизнеса: "hWHITE"%s\n{D2802D}Стоимость бизнеса: "hGREEN"%i$\n{D2802D}Для покупки бизнеса используйте: "hWHITE"/buybusiness",BusinessInfo[b][bName],BusinessInfo[b][bPrice]); 
                    BusinessInfo[b][bTextInfo] = CreateDynamic3DTextLabel(str, -1,BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],3.0); 
                    BusinessInfo[b][bPickEnter] = CreateDynamicPickup(19132, 23, BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],-1); 
                    BusinessInfo[b][bPickExit] = CreateDynamicPickup(19132, 23, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ],BusinessInfo[b][bVW]); 
                    BusinessInfo[b][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ], BusinessInfo[b][bMapIcon], -1, 0, -1, -1, 200.0); 
                    BusinessInfo[b][bActor] = CreateActor(BusinessInfo[b][bActorModel], BusinessInfo[b][bActorX],BusinessInfo[b][bActorY],BusinessInfo[b][bActorZ],BusinessInfo[b][bActorA]); 
                    if(BusinessInfo[b][bType] != 2) 
                    { 
                        BusinessInfo[b][bChek] = CreateDynamicCP(BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ],1.0,BusinessInfo[b][bVW],BusinessInfo[b][bInt],-1,23.0); 
                    } 
                    else 
                     { 
                        BusinessInfo[b][bChek] = CreateDynamicPickup(1239,23,BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ],BusinessInfo[b][bVW]); 
                    } 
                    SetActorVirtualWorld(BusinessInfo[b][bActor], BusinessInfo[b][bVW]); 
                } 
             } 
        } 
        printf("Загружено: %d бизнес(ов). Затрачено: %d ms.",TotalBusiness,GetTickCount()-time); 
      } 
    return true; 
}
Вот загрузка домов:
PHP:
public LoadHouse() 
{ 
    new rows, fields, temp[256], time = GetTickCount(), klass[11],str[256]; 
    cache_get_data(rows, fields); 
    if(rows) 
    { 
        for(new h = 0; h < rows; h++) 
        { 
            cache_get_field_content(h, "id", temp), HouseInfo[h][hID] = strval (temp); 
            cache_get_field_content(h, "enterx", temp), HouseInfo[h][hEnterX] = floatstr (temp); 
            cache_get_field_content(h, "entery", temp), HouseInfo[h][hEnterY] = floatstr (temp); 
            cache_get_field_content(h, "enterz", temp), HouseInfo[h][hEnterZ] = floatstr (temp); 
            cache_get_field_content(h, "exitx", temp), HouseInfo[h][hExitX] = floatstr (temp); 
            cache_get_field_content(h, "exity", temp), HouseInfo[h][hExitY] = floatstr (temp); 
            cache_get_field_content(h, "exitz", temp), HouseInfo[h][hExitZ] = floatstr (temp); 
            cache_get_field_content(h, "carx", temp), HouseInfo[h][hCarX] = floatstr (temp); 
            cache_get_field_content(h, "cary", temp), HouseInfo[h][hCarY] = floatstr (temp); 
            cache_get_field_content(h, "carz", temp), HouseInfo[h][hCarZ] = floatstr (temp); 
            cache_get_field_content(h, "cara", temp), HouseInfo[h][hCarAngle] = floatstr (temp); 
            cache_get_field_content(h, "class", temp), HouseInfo[h][hClass] = strval (temp); 
            cache_get_field_content(h, "owner", HouseInfo[h][hOwner], dbHandle); 
            cache_get_field_content(h, "owned", temp), HouseInfo[h][hOwned] = strval (temp); 
            cache_get_field_content(h, "price", temp), HouseInfo[h][hPrice] = strval (temp); 
            cache_get_field_content(h, "day", temp), HouseInfo[h][hDay] = strval (temp); 
            cache_get_field_content(h, "int", temp), HouseInfo[h][hInt] = strval (temp); 
            cache_get_field_content(h, "lock", temp), HouseInfo[h][hLock] = strval (temp); 
            cache_get_field_content(h, "skladlock", temp), HouseInfo[h][hSkladLock] = strval (temp); 
            cache_get_field_content(h, "invobject0", temp), HouseInfo[h][hInvObject][0] = strval (temp); 
            cache_get_field_content(h, "invobject1", temp), HouseInfo[h][hInvObject][1] = strval (temp); 
            cache_get_field_content(h, "invobject2", temp), HouseInfo[h][hInvObject][2] = strval (temp); 
            cache_get_field_content(h, "invobject3", temp), HouseInfo[h][hInvObject][3] = strval (temp); 
            cache_get_field_content(h, "invobject4", temp), HouseInfo[h][hInvObject][4] = strval (temp); 
            cache_get_field_content(h, "invobject5", temp), HouseInfo[h][hInvObject][5] = strval (temp); 
            cache_get_field_content(h, "invobject6", temp), HouseInfo[h][hInvObject][6] = strval (temp); 
            cache_get_field_content(h, "invobject7", temp), HouseInfo[h][hInvObject][7] = strval (temp); 
            cache_get_field_content(h, "invobject8", temp), HouseInfo[h][hInvObject][8] = strval (temp); 
            cache_get_field_content(h, "invobject9", temp), HouseInfo[h][hInvObject][9] = strval (temp); 
            cache_get_field_content(h, "invobject10", temp), HouseInfo[h][hInvObject][10] = strval (temp); 
            cache_get_field_content(h, "invobject11", temp), HouseInfo[h][hInvObject][11] = strval (temp); 
            cache_get_field_content(h, "invobject12", temp), HouseInfo[h][hInvObject][12] = strval (temp); 
            cache_get_field_content(h, "invobject13", temp), HouseInfo[h][hInvObject][13] = strval (temp); 
            cache_get_field_content(h, "invobject14", temp), HouseInfo[h][hInvObject][14] = strval (temp); 
            cache_get_field_content(h, "invobject15", temp), HouseInfo[h][hInvObject][15] = strval (temp); 
            cache_get_field_content(h, "invobject16", temp), HouseInfo[h][hInvObject][16] = strval (temp); 
            cache_get_field_content(h, "invobject17", temp), HouseInfo[h][hInvObject][17] = strval (temp); 
            cache_get_field_content(h, "invobject18", temp), HouseInfo[h][hInvObject][18] = strval (temp); 
            cache_get_field_content(h, "invobject19", temp), HouseInfo[h][hInvObject][19] = strval (temp); 
            cache_get_field_content(h, "invobject20", temp), HouseInfo[h][hInvObject][20] = strval (temp); 
            cache_get_field_content(h, "invobject21", temp), HouseInfo[h][hInvObject][21] = strval (temp); 
            cache_get_field_content(h, "invobject22", temp), HouseInfo[h][hInvObject][22] = strval (temp); 
            cache_get_field_content(h, "invobject23", temp), HouseInfo[h][hInvObject][23] = strval (temp); 
            cache_get_field_content(h, "invobject24", temp), HouseInfo[h][hInvObject][24] = strval (temp); 
            cache_get_field_content(h, "invobject25", temp), HouseInfo[h][hInvObject][25] = strval (temp); 
            cache_get_field_content(h, "invobject26", temp), HouseInfo[h][hInvObject][26] = strval (temp); 
            cache_get_field_content(h, "invobject27", temp), HouseInfo[h][hInvObject][27] = strval (temp); 
            cache_get_field_content(h, "invobject28", temp), HouseInfo[h][hInvObject][28] = strval (temp); 
            cache_get_field_content(h, "invobject29", temp), HouseInfo[h][hInvObject][29] = strval (temp); 
            cache_get_field_content(h, "invkol0", temp), HouseInfo[h][hInvKol][0] = strval (temp); 
            cache_get_field_content(h, "invkol1", temp), HouseInfo[h][hInvKol][1] = strval (temp); 
            cache_get_field_content(h, "invkol2", temp), HouseInfo[h][hInvKol][2] = strval (temp); 
            cache_get_field_content(h, "invkol3", temp), HouseInfo[h][hInvKol][3] = strval (temp); 
            cache_get_field_content(h, "invkol4", temp), HouseInfo[h][hInvKol][4] = strval (temp); 
            cache_get_field_content(h, "invkol5", temp), HouseInfo[h][hInvKol][5] = strval (temp); 
            cache_get_field_content(h, "invkol6", temp), HouseInfo[h][hInvKol][6] = strval (temp); 
            cache_get_field_content(h, "invkol7", temp), HouseInfo[h][hInvKol][7] = strval (temp); 
            cache_get_field_content(h, "invkol8", temp), HouseInfo[h][hInvKol][8] = strval (temp); 
            cache_get_field_content(h, "invkol9", temp), HouseInfo[h][hInvKol][9] = strval (temp); 
            cache_get_field_content(h, "invkol10", temp), HouseInfo[h][hInvKol][10] = strval (temp); 
            cache_get_field_content(h, "invkol11", temp), HouseInfo[h][hInvKol][11] = strval (temp); 
            cache_get_field_content(h, "invkol12", temp), HouseInfo[h][hInvKol][12] = strval (temp); 
            cache_get_field_content(h, "invkol13", temp), HouseInfo[h][hInvKol][13] = strval (temp); 
            cache_get_field_content(h, "invkol14", temp), HouseInfo[h][hInvKol][14] = strval (temp); 
            cache_get_field_content(h, "invkol15", temp), HouseInfo[h][hInvKol][15] = strval (temp); 
            cache_get_field_content(h, "invkol16", temp), HouseInfo[h][hInvKol][16] = strval (temp); 
            cache_get_field_content(h, "invkol17", temp), HouseInfo[h][hInvKol][17] = strval (temp); 
            cache_get_field_content(h, "invkol18", temp), HouseInfo[h][hInvKol][18] = strval (temp); 
            cache_get_field_content(h, "invkol19", temp), HouseInfo[h][hInvKol][19] = strval (temp); 
            cache_get_field_content(h, "invkol20", temp), HouseInfo[h][hInvKol][20] = strval (temp); 
            cache_get_field_content(h, "invkol21", temp), HouseInfo[h][hInvKol][21] = strval (temp); 
            cache_get_field_content(h, "invkol22", temp), HouseInfo[h][hInvKol][22] = strval (temp); 
            cache_get_field_content(h, "invkol23", temp), HouseInfo[h][hInvKol][23] = strval (temp); 
            cache_get_field_content(h, "invkol24", temp), HouseInfo[h][hInvKol][24] = strval (temp); 
            cache_get_field_content(h, "invkol25", temp), HouseInfo[h][hInvKol][25] = strval (temp); 
            cache_get_field_content(h, "invkol26", temp), HouseInfo[h][hInvKol][26] = strval (temp); 
            cache_get_field_content(h, "invkol27", temp), HouseInfo[h][hInvKol][27] = strval (temp); 
            cache_get_field_content(h, "invkol28", temp), HouseInfo[h][hInvKol][28] = strval (temp); 
            cache_get_field_content(h, "invkol29", temp), HouseInfo[h][hInvKol][29] = strval (temp); 
             TotalHouse++; 
             if(HouseInfo[h][hOwned] == 0) 
             { 
                 HouseInfo[h][hPickupEnter] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEnterX], HouseInfo[h][hEnterY], HouseInfo[h][hEnterZ],-1); 
                HouseInfo[h][hMapIcon] = CreateDynamicMapIcon(HouseInfo[h][hEnterX], HouseInfo[h][hEnterY], HouseInfo[h][hEnterZ], 31, -1, 0, -1, -1, 200.0); 
                switch(HouseInfo[h][hClass]) 
                { 
                    case 0:klass = "Эконом"; 
                    case 1:klass = "Средний"; 
                    case 2:klass = "Люкс"; 
                    case 3:klass = "Элитный"; 
                } 
                format(str,sizeof(str), "Номер дома: %d\nЦена: %d\nКласс: %s",h+1,HouseInfo[h][hPrice],klass); 
                HouseInfo[h][hStats] = CreateDynamic3DTextLabel(str, -1,HouseInfo[h][hEnterX], HouseInfo[h][hEnterY], HouseInfo[h][hEnterZ],3.0); 
             } 
             else 
             { 
                 HouseInfo[h][hPickupEnter] = CreateDynamicPickup(19522, 23, HouseInfo[h][hEnterX], HouseInfo[h][hEnterY], HouseInfo[h][hEnterZ],0); 
                HouseInfo[h][hMapIcon] = CreateDynamicMapIcon(HouseInfo[h][hEnterX], HouseInfo[h][hEnterY], HouseInfo[h][hEnterZ], 32, -1, 0, -1, -1, 200.0); 
                switch(HouseInfo[h][hClass]) 
                { 
                    case 0:klass = "Эконом"; 
                    case 1:klass = "Средний"; 
                    case 2:klass = "Люкс"; 
                    case 3:klass = "Элитный"; 
                } 
                format(str,sizeof(str),"Номер дома: %d\nВладелец: %s\nКласс: %s",h+1,HouseInfo[h][hOwner],klass); 
                HouseInfo[h][hStats] = CreateDynamic3DTextLabel(str, -1,HouseInfo[h][hEnterX], HouseInfo[h][hEnterY], HouseInfo[h][hEnterZ],3.0); 
            } 
        } 
        printf("Загрузка домов. Загружено %d. Затрачено %d ms.",TotalHouse, GetTickCount()-time); 
      } 
    return true; 
}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу