Закрыть Привет! Если вы читаете это - Вы еще не зарегистрированы. Это займет не больше минуты. Нажмите здесь, чтобы пройти регистрацию в несколько простых шагов, чтобы пользоваться всеми возможностями нашего форума. Обратите внимание, запрещены непристойные, матерные, бессмысленные (цифры, случайный набор букв) ники. Удачи!

Тема: Помогите по бизнесам пожалуйста

Показано с 1 по 2 из 2

  1. #1
    Пользователь

    Аватар для Karnet

    Статус: Оффлайн
    Регистрация:24.09.2015
    Адрес:Ярославль
    Сообщений:4
    Репутация:0 [+/-] 

    Помогите по бизнесам пожалуйста

    Ребят, такой вопрос, суть том что в моде стоит динамическая система бизнесов, но, когда я создаю бизнес, покупаю, то не заходит ни в один интерьер, как будто пикап вовсе не работает... да даже если не создавая, бизнесы которые уже присутствуют, все так же, не заходит, единственный бизнес куда заходит это 24/7. Он самый первый в списке.


    Это команда

    Открыть спойлер

    PHP код:
    CMD:addbusiness(playerid,params[])
    {
        if(
    gPlayerLogged[playerid] == false) return SendClientMessage(playerid,COLOR_SERVER,"Вы не авторизованы на сервере");
        if(
    PlayerInfo[playerid][pADMlvl] < 9) return true;
        
    ShowPlayerDialogFix(playerid59DIALOG_STYLE_LIST""hWHITE"Добавление бизнеса""Магазин 24/7\nЗаправка\nПиццерия\nЗакусочная (Burger Shot)\nЗакусочная (Cluckin Bell)\nКлуб (Alhambra)\nКлуб (Jizzy)\nКлуб (Pig Pen)\nБар (Misty)\nКомпьютерный клуб\nАгенство Недвижимости""Выбрать""Отмена");
        return 
    true;

    [Скрыть]


    Открыть спойлер

    PHP код:
            case 59:
            {
                if(!
    response) return true;
                if(
    response)
                {
                    switch(
    listitem)
                    {
                        case 
    0:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);
                            
                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);
                            
                            
    SetPVarFloat(playerid,"add_b_exitX",-2240.7820);
                            
    SetPVarFloat(playerid,"add_b_exitY",137.2150);
                            
    SetPVarFloat(playerid,"add_b_exitZ",1035.4141);
                            
                            
    SetPVarFloat(playerid,"add_b_buyX",-2237.0664);
                            
    SetPVarFloat(playerid,"add_b_buyY",130.2340);
                            
    SetPVarFloat(playerid,"add_b_buyZ",1035.4141);
                            
                            
    SetPVarFloat(playerid,"add_b_actorX",-2237.0164);
                            
    SetPVarFloat(playerid,"add_b_actorY",128.5847);
                            
    SetPVarFloat(playerid,"add_b_actorZ",1035.4141);
                            
    SetPVarFloat(playerid,"add_b_actorA",0.2666);
                            
    SetPVarInt(playerid,"add_b_model",60);
        
                            
                            
    SetPVarInt(playerid,"add_b_int",6);
                            
    SetPVarInt(playerid,"add_b_map",56);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",2);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    TotalBusiness++;
                            
    strmid(BusinessInfo[TotalBusiness][bName], "24/7"012255);
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    1:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",x);
                            
    SetPVarFloat(playerid,"add_b_exitY",y);
                            
    SetPVarFloat(playerid,"add_b_exitZ",z);

                            
    SetPVarFloat(playerid,"add_b_buyX",x);
                            
    SetPVarFloat(playerid,"add_b_buyY",y);
                            
    SetPVarFloat(playerid,"add_b_buyZ",z);

                            
    SetPVarInt(playerid,"add_b_int",0);
                            
    SetPVarInt(playerid,"add_b_map",27);
                            
    SetPVarInt(playerid,"add_b_vw",0);
                            
    SetPVarInt(playerid,"add_b_type",1);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    TotalBusiness++;
                            
    strmid(BusinessInfo[TotalBusiness][bName], "АЗС"012255);
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    2:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",1212.0781);
                            
    SetPVarFloat(playerid,"add_b_exitY",-26.7064);
                            
    SetPVarFloat(playerid,"add_b_exitZ",1000.9531);

                            
    SetPVarFloat(playerid,"add_b_buyX",374.7469);
                            
    SetPVarFloat(playerid,"add_b_buyY",-119.3624);
                            
    SetPVarFloat(playerid,"add_b_buyZ",1001.4995);
                            
                            
    SetPVarFloat(playerid,"add_b_actorX",374.7412);
                            
    SetPVarFloat(playerid,"add_b_actorY",-117.2788);
                            
    SetPVarFloat(playerid,"add_b_actorZ",1001.4922);
                            
    SetPVarFloat(playerid,"add_b_actorA",178.2650);
                            
    SetPVarInt(playerid,"add_b_model",155);

                            
    SetPVarInt(playerid,"add_b_int",5);
                            
    SetPVarInt(playerid,"add_b_map",29);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",3);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    TotalBusiness++;
                            
    strmid(BusinessInfo[TotalBusiness][bName], "Закусочная"012255);
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    3:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",362.8425);
                            
    SetPVarFloat(playerid,"add_b_exitY",-75.1392);
                            
    SetPVarFloat(playerid,"add_b_exitZ",1001.5078);

                            
    SetPVarFloat(playerid,"add_b_buyX",377.3217);
                            
    SetPVarFloat(playerid,"add_b_buyY",-67.8903);
                            
    SetPVarFloat(playerid,"add_b_buyZ",1001.5151);
                            
                            
    SetPVarFloat(playerid,"add_b_actorX",377.2859);
                            
    SetPVarFloat(playerid,"add_b_actorY",-65.8484);
                            
    SetPVarFloat(playerid,"add_b_actorZ",1001.5078);
                            
    SetPVarFloat(playerid,"add_b_actorA",180.1918);
                            
                            
    SetPVarInt(playerid,"add_b_model",205);

                            
    SetPVarInt(playerid,"add_b_int",10);
                            
    SetPVarInt(playerid,"add_b_map",10);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",3);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    TotalBusiness++;
                            
    strmid(BusinessInfo[TotalBusiness][bName], "Закусочная"012255);
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    4:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",364.9063);
                            
    SetPVarFloat(playerid,"add_b_exitY",-11.7721);
                            
    SetPVarFloat(playerid,"add_b_exitZ",1001.8516);

                            
    SetPVarFloat(playerid,"add_b_buyX",369.6516);
                            
    SetPVarFloat(playerid,"add_b_buyY",-6.3217);
                            
    SetPVarFloat(playerid,"add_b_buyZ",1001.8589);
                            
                            
    SetPVarFloat(playerid,"add_b_actorX",369.7021);
                            
    SetPVarFloat(playerid,"add_b_actorY",-4.4918);
                            
    SetPVarFloat(playerid,"add_b_actorZ",1001.8589);
                            
    SetPVarFloat(playerid,"add_b_actorA",179.2284);

                            
    SetPVarInt(playerid,"add_b_model",167);

                            
    SetPVarInt(playerid,"add_b_int",9);
                            
    SetPVarInt(playerid,"add_b_map",14);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",3);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    TotalBusiness++;
                            
    strmid(BusinessInfo[TotalBusiness][bName], "Закусочная"015255);
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    5:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",493.3561);
                            
    SetPVarFloat(playerid,"add_b_exitY",-24.8449);
                            
    SetPVarFloat(playerid,"add_b_exitZ",1000.6797);

                            
    SetPVarFloat(playerid,"add_b_buyX",499.2758);
                            
    SetPVarFloat(playerid,"add_b_buyY",-20.7244);
                            
    SetPVarFloat(playerid,"add_b_buyZ",1000.6797);
                            
                            
    SetPVarFloat(playerid,"add_b_actorX",501.6996);
                            
    SetPVarFloat(playerid,"add_b_actorY",-20.5098);
                            
    SetPVarFloat(playerid,"add_b_actorZ",1000.6797);
                            
    SetPVarFloat(playerid,"add_b_actorA",90.5543);

                            
    SetPVarInt(playerid,"add_b_model",11);

                            
    SetPVarInt(playerid,"add_b_int",17);
                            
    SetPVarInt(playerid,"add_b_map",48);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",4);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    strmid(BusinessInfo[TotalBusiness][bName], "Club"05255);
                            
    TotalBusiness++;
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    6:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",-2636.6792);
                            
    SetPVarFloat(playerid,"add_b_exitY",1402.4634);
                            
    SetPVarFloat(playerid,"add_b_exitZ",906.4609);

                            
    SetPVarFloat(playerid,"add_b_buyX",-2659.1587);
                            
    SetPVarFloat(playerid,"add_b_buyY",1416.9315);
                            
    SetPVarFloat(playerid,"add_b_buyZ",906.2734);
                            
                            
    SetPVarFloat(playerid,"add_b_actorX",-2659.7234);
                            
    SetPVarFloat(playerid,"add_b_actorY",1413.9568);
                            
    SetPVarFloat(playerid,"add_b_actorZ",906.2734);
                            
    SetPVarFloat(playerid,"add_b_actorA",1.6135);

                            
    SetPVarInt(playerid,"add_b_model",11);

                            
    SetPVarInt(playerid,"add_b_int",3);
                            
    SetPVarInt(playerid,"add_b_map",48);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",4);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    strmid(BusinessInfo[TotalBusiness][bName], "Club"05255);
                            
    TotalBusiness++;
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    7:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",1204.7395);
                            
    SetPVarFloat(playerid,"add_b_exitY",-13.8515);
                            
    SetPVarFloat(playerid,"add_b_exitZ",1000.9219);

                            
    SetPVarFloat(playerid,"add_b_buyX",1214.1865);
                            
    SetPVarFloat(playerid,"add_b_buyY",-12.9937);
                            
    SetPVarFloat(playerid,"add_b_buyZ",1000.9219);
                            
                            
    SetPVarFloat(playerid,"add_b_actorX",1214.2731);
                            
    SetPVarFloat(playerid,"add_b_actorY",-15.2625);
                            
    SetPVarFloat(playerid,"add_b_actorZ",1000.9219);
                            
    SetPVarFloat(playerid,"add_b_actorA",0.3602);

                            
    SetPVarInt(playerid,"add_b_model",11);

                            
    SetPVarInt(playerid,"add_b_int",2);
                            
    SetPVarInt(playerid,"add_b_map",48);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",4);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    strmid(BusinessInfo[TotalBusiness][bName], "Club"05255);
                            
    TotalBusiness++;
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    8:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",501.9752);
                            
    SetPVarFloat(playerid,"add_b_exitY",-67.5652);
                            
    SetPVarFloat(playerid,"add_b_exitZ",998.7578);

                            
    SetPVarFloat(playerid,"add_b_buyX",496.4381);
                            
    SetPVarFloat(playerid,"add_b_buyY",-75.5758);
                            
    SetPVarFloat(playerid,"add_b_buyZ",998.7578);
                            
                            
    SetPVarFloat(playerid,"add_b_actorX",496.3696);
                            
    SetPVarFloat(playerid,"add_b_actorY",-77.4626);
                            
    SetPVarFloat(playerid,"add_b_actorZ",998.7651);
                            
    SetPVarFloat(playerid,"add_b_actorA",359.0834);

                            
    SetPVarInt(playerid,"add_b_model",11);

                            
    SetPVarInt(playerid,"add_b_int",11);
                            
    SetPVarInt(playerid,"add_b_map",49);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",4);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    TotalBusiness++;
                            
    strmid(BusinessInfo[TotalBusiness][bName], "Bar"04255);
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    9:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);
                            
    SetPVarFloat(playerid,"add_b_exitX",1921.507324);
                            
    SetPVarFloat(playerid,"add_b_exitY",-2905.506347);
                            
    SetPVarFloat(playerid,"add_b_exitZ",1810.714965);

                            
    SetPVarFloat(playerid,"add_b_buyX",1916.586425);
                            
    SetPVarFloat(playerid,"add_b_buyY",-2909.265380);
                            
    SetPVarFloat(playerid,"add_b_buyZ",1810.714965);

                            
    SetPVarFloat(playerid,"add_b_actorX",1915.100341);
                            
    SetPVarFloat(playerid,"add_b_actorY",-2906.363769);
                            
    SetPVarFloat(playerid,"add_b_actorZ",1810.714965);
                            
    SetPVarFloat(playerid,"add_b_actorA",227.927352);

                            
    SetPVarInt(playerid,"add_b_model",11);

                            
    SetPVarInt(playerid,"add_b_int",11);
                            
    SetPVarInt(playerid,"add_b_map",12);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",5);
                            
    SetPVarInt(playerid,"add_b_price",3000000);
                            
    TotalBusiness++;
                            
    strmid(BusinessInfo[TotalBusiness][bName], "Computer Club"025255);
                            
    add_business(playerid,TotalBusiness);
                        }
                        case 
    10:
                        {
                            new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(playerid,x,y,z);

                            
    SetPVarFloat(playerid,"add_b_enterX",x);
                            
    SetPVarFloat(playerid,"add_b_enterY",y);
                            
    SetPVarFloat(playerid,"add_b_enterZ",z);

                            
    SetPVarFloat(playerid,"add_b_exitX",1688.4645);
                            
    SetPVarFloat(playerid,"add_b_exitY",-1343.4174);
                            
    SetPVarFloat(playerid,"add_b_exitZ",17.4232);

                            
    SetPVarFloat(playerid,"add_b_buyX",1371.4484);
                            
    SetPVarFloat(playerid,"add_b_buyY",893.8201);
                            
    SetPVarFloat(playerid,"add_b_buyZ",1106.0900);


                            
    SetPVarInt(playerid,"add_b_int",6);
                            
    SetPVarInt(playerid,"add_b_map",56);
                            
    SetPVarInt(playerid,"add_b_vw",TotalBusiness+1);
                            
    SetPVarInt(playerid,"add_b_type",2);
                            
    SetPVarInt(playerid,"add_b_price",100000);
                            
    TotalBusiness++;
                            
    strmid(BusinessInfo[TotalBusiness][bName], "agenstvo"012255);
                            
    add_business(playerid,TotalBusiness);
                        }
                    }
                }
            } 
    [Скрыть]



    сток

    Открыть спойлер

    PHP код:
    stock add_business(playerid,b)
    {
        new 
    query[512],str[256];
        new 
    Float:enterx GetPVarFloat(playerid,"add_b_enterX");
        new 
    Float:entery GetPVarFloat(playerid,"add_b_enterY");
        new 
    Float:enterz GetPVarFloat(playerid,"add_b_enterZ");
        new 
    Float:exitx GetPVarFloat(playerid,"add_b_exitX");
        new 
    Float:exity GetPVarFloat(playerid,"add_b_exitY");
        new 
    Float:exitz GetPVarFloat(playerid,"add_b_exitZ");
        new 
    Float:buyx GetPVarFloat(playerid,"add_b_buyX");
        new 
    Float:buyy GetPVarFloat(playerid,"add_b_buyY");
        new 
    Float:buyz GetPVarFloat(playerid,"add_b_buyZ");
        new 
    Float:actorx GetPVarFloat(playerid,"add_b_actorX");
        new 
    Float:actory GetPVarFloat(playerid,"add_b_actorY");
        new 
    Float:actorz GetPVarFloat(playerid,"add_b_actorZ");
        new 
    Float:actora GetPVarFloat(playerid,"add_b_actorA");
        new 
    model GetPVarInt(playerid,"add_b_model");
        new 
    inter GetPVarInt(playerid,"add_b_int");
        new 
    map GetPVarInt(playerid,"add_b_map");
        new 
    vw GetPVarInt(playerid,"add_b_vw");
        new 
    type GetPVarInt(playerid,"add_b_type");
        new 
    price GetPVarInt(playerid,"add_b_price");
        
    SendClientMessage(playerid,COLOR_SERVER,"Бизнес был добавлен!");
        
        
        
    BusinessInfo[b][bOwned] = 0;
        
    BusinessInfo[b][bPrice] = price;
        
    BusinessInfo[b][bEnterX] = enterx;
        
    BusinessInfo[b][bEnterY] = entery;
        
    BusinessInfo[b][bEnterZ] = enterz;
        
    BusinessInfo[b][bBuyX] = buyx;
        
    BusinessInfo[b][bBuyY] = buyy;
        
    BusinessInfo[b][bBuyZ] = buyz;
        
    BusinessInfo[b][bExitX] = exitx;
        
    BusinessInfo[b][bExitY] = exity;
        
    BusinessInfo[b][bExitZ] = exitz;
        
        
    BusinessInfo[b][bActorX] = actorx;
        
    BusinessInfo[b][bActorY] = actory;
        
    BusinessInfo[b][bActorZ] = actorz;
        
    BusinessInfo[b][bActorA] = actora;
        
    BusinessInfo[b][bActorModel] = model;
        
        
        
    BusinessInfo[b][bType] = type;
        
    BusinessInfo[b][bInt] = inter;
        
    BusinessInfo[b][bVW] = vw;
        
    BusinessInfo[b][bMapIcon] = map;
        
        
        
        if(
    BusinessInfo[b][bType] == 1)
        {
             if(
    BusinessInfo[b][bOwned] == 1)
             {
                
    format(str,sizeof(str), "{D2802D}Название бизнеса: "hWHITE"%s\n{D2802D}Владелец: "hWHITE"%s\n{D2802D}Топлива: %i л.\n{D2802D}Цена за 1 л: "hWHITE"%i$\n{D2802D}Цена за покупку топлива: "hWHITE"%i$",BusinessInfo[b][bName],BusinessInfo[b][bOwner],BusinessInfo[b][bProd],BusinessInfo[b][bCena],BusinessInfo[b][bPriceProd]);
                 
    BusinessInfo[b][bTextInfo] = CreateDynamic3DTextLabel(str, -1,BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ],20.0);
                 
    BusinessInfo[b][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ], BusinessInfo[b][bMapIcon], -10, -1, -1200.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],20.0);
                
    BusinessInfo[b][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[b][bBuyX], BusinessInfo[b][bBuyY], BusinessInfo[b][bBuyZ], BusinessInfo[b][bMapIcon], -10, -1, -1200.0);
            }
        }
        else
        {
             if(
    BusinessInfo[b][bOwned] == 1)
             {
                
    format(str,sizeof(str), "{D2802D}Название бизнеса: "hWHITE"%s\n{D2802D}Владелец: %s\n{D2802D}Продуктов: "hWHITE"%i {D2802D}шт\nЦена покупки продуктов: "hWHITE"%i$",BusinessInfo[b][bName],BusinessInfo[b][bOwner],BusinessInfo[b][bProd],BusinessInfo[b][bPriceProd]);
                
    BusinessInfo[b][bTextInfo] = CreateDynamic3DTextLabel(str, -1,BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],20.0);
                 
    BusinessInfo[b][bPickEnter] = CreatePickup(1913223BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],-1);
                
    BusinessInfo[b][bPickExit] = CreatePickup(1913223BusinessInfo[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], -10, -1, -1200.0);
                
    BusinessInfo[b][bActor] = CreateActor(bActorModelBusinessInfo[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);
                
    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],20.0);
                 
    BusinessInfo[b][bPickEnter] = CreatePickup(1913223BusinessInfo[b][bEnterX], BusinessInfo[b][bEnterY], BusinessInfo[b][bEnterZ],-1);
                 
    BusinessInfo[b][bPickExit] = CreatePickup(1913223BusinessInfo[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], -10, -1, -1200.0);
                 
    BusinessInfo[b][bActor] = CreateActor(bActorModelBusinessInfo[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);
                 
    SetActorVirtualWorld(BusinessInfo[b][bActor], BusinessInfo[b][bVW]);
            }
        }
        
        
    format(querysizeof query"INSERT INTO `business` ( `enter_x`, `enter_y`, `enter_z`, `exit_x`, `exit_y`, `exit_z`, `buy_x`, `buy_y`, `buy_z`, `actor_x`, `actor_y`, `actor_z`,`actor_a`, `actor_model`, `int`, `vw`, `mapicon`, `price`, `type`) VALUES ( '%f', '%f', '%f', '%f', '%f', '%f', '%f', '%f', '%f','%f', '%f', '%f', '%f', '%d', '%d', '%d', '%d', '%d', '%d')",enterx,entery,enterz,exitx,exity,exitz,buyx,buyy,buyz,actorx,actory,actorz,actora,model,inter,vw,map,price,type);
        
    mysql_function_query(dbHandlequeryfalse"""");
        return 
    true;

    [Скрыть]



    Помогите пожалуйста, на киви 100 лежит за помощь могу перевести
  2. #2
    • Скриптер •

    Аватар для xDimasx

    Статус: Оффлайн
    Регистрация:01.02.2014
    Адрес:Tallinn
    Сообщений:443
    Репутация:120 [+/-] 
    Давай напиши мне в ВК и за твои 100 рублей я устраню проблему.
    Может быть нет функционала к пикапам бизнеса.
    Последний раз редактировалось xDimasx; 14.01.2018 в 15:18.
    PHP код:
    CMD:q(playerid) return SCMF(playerid,-1,"%s",(!GetPVarInt(playerid,"SPASIBO") ? ("Не выйдешь пока не нажмёшь спасибо! :D") : ("Благодарю за спасибо. Проходи! =D"));
    ALTX:q("/quit"); 

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения