Добро пожаловать на Pro Pawn - Портал о PAWN-скриптинге.

Реклама


**Как получить V.I.P** (Перейти)
Чтобы заказать рекламу на Pro-Pawn.Ru, обращайтесь в Skype.
Баннерная реклама 200руб/мес, Текстовая 100руб/мес.
Страница 1 из 2 12 ПоследняяПоследняя
Показано с 1 по 10 из 17
  1. #1
    Аватар для A N D R E Y
    Пользователь

    Статус
    Оффлайн
    Регистрация
    07.12.2013
    Сообщений
    149
    Репутация:
    14 ±

    Ругань паблика OnPlayerPickUpPickup

    Всем привет! Незнаю есть-ли тема с решением проблемы на форуме. Вобщем после авторизации к игроку не возвращается камера, но это не проблема, а в консоли много строк с ошибкой типа:
    PHP код:
    [03:30:12] [debugRun time error 4"Array index out of bounds"
    [03:30:12] [debug]  Accessing element at negative index -1
    [03:30:12] [debugAMX backtrace:
    [
    03:30:12] [debug#0 00057d28 in public OnPlayerPickUpPickup (0, 205) from discovery.amx 
    Говорите какой код нужно предоставить, и я его скину.
    Перевод ошибки мне не нужен, нужна помощь в решении проблемы.Заранее спасибо.

  2. #2
    Аватар для VVWVV
    Проверенный

    Статус
    Оффлайн
    Регистрация
    09.07.2015
    Сообщений
    607
    Репутация:
    289 ±
    У тебя массив вышел за пределы во время исполнения кода, а именно был указан индекс «-1».
    Последний раз редактировалось VVWVV; 30.11.2015 в 16:47.

  3. Пользователь сказал cпасибо:
    A N D R E Y (07.12.2015)
  4. #3
    Аватар для Londlem
    Модератор

    Статус
    Оффлайн
    Регистрация
    19.10.2013
    Сообщений
    1,360
    Репутация:
    767 ±
    Вы код-то покажите нам.

  5. Пользователь сказал cпасибо:
    A N D R E Y (07.12.2015)
  6. #4
    Аватар для A N D R E Y
    Пользователь

    Статус
    Оффлайн
    Регистрация
    07.12.2013
    Сообщений
    149
    Репутация:
    14 ±
    Цитата Сообщение от Londlem Посмотреть сообщение
    Вы код-то покажите нам.
    Вот весь паблик. Знаю что РЛС, но я давно уже его ковыряю, и уже бросать не хочу.
    PHP код:
    public OnPlayerPickUpPickup(playeridpickupid)
    {
        new 
    Name_OPPUP[24];
        
    GetPlayerName(playerid,Name_OPPUP,MAX_PLAYER_NAME);
        if(
    pickupid == Teleport)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1000.8105,1000.6549,3999.8000);
        }
        if(
    pickupid == Teleport1)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1654.0436,-1657.4110,22.5156);
        }
        if(
    pickupid == Teleport2)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1000.8864,1000.4631,1999.8000);
        }
        else if(
    pickupid == armysport)
        {
            if(
    PlayerInfo[playerid][pMember] == 19) return SetPlayerSkin(playerid,287);
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Âû íå ñîëäàò Çîíû 51!");
        }
        else if(
    pickupid == armysport1)
        {
            if(
    PlayerInfo[playerid][pMember] == 19) return SetPlayerSkin(playerid,80);
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Âû íå ñîëäàò Çîíû 51!");
        }
        else if(
    pickupid == armysport2)
        {
            if(
    PlayerInfo[playerid][pMember] == 19) return SetPlayerHealth(playerid,100);
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Âû íå ñîëäàò Çîíû 51!");
        }
        else if(
    pickupid == cerkva[0])
        {
            
    SetPlayerInterior(playerid,2);
            
    SetPlayerPos(playerid,-2018.4535,1119.3928,26.0531);
            
    SetPlayerFacingAngle(playerid,188.2947);
        }
        else if(
    pickupid == cerkva[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-1987.3119,1117.8851,54.2214);
            
    SetPlayerFacingAngle(playerid,188.2947);
        }
        if(
    pickupid == Teleport3)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2054.1709,462.1779,35.1719);
        }
        if(
    pickupid == Teleport4)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1000.1873,1000.5964,2999.8000);
        }
        if(
    pickupid == Teleport5)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2644.6987,1182.1154,10.8203);
        }
        if(
    pickupid == rabota1)
        {
            new 
    rabotadialog[372];
            
    format(rabotadialog,sizeof(rabotadialog),"%s%s%s%s%s%s%s%s%s%s%s%s",
            
    rabotaMSG[0],rabotaMSG[1],rabotaMSG[2],rabotaMSG[3],rabotaMSG[4],rabotaMSG[5],rabotaMSG[6],rabotaMSG[7],rabotaMSG[8],rabotaMSG[9],rabotaMSG[10],rabotaMSG[11]);
            
    ShowPlayerDialog(playerid,133,DIALOG_STYLE_MSGBOX,"Èíôîðìàöèÿ î ðàáîòå",rabotadialog,"Îê",""); // 133
        
    }
        if(
    pickupid == pickupenter)
        {
            
    SetPlayerPos(playerid,269.48,-265.73,1185.87);
            
    SetPlayerInterior(playerid,0);
        }
        if(
    pickupid == SkladPickupwe)
        {
            if(
    PlayerInfo[playerid][pKazino] != 1) return SendClientMessage(playerid,COLOR_WHITE,"Âû íå ðàáîòíèê Êàçèíî Êàëèãóëà!");
            
    ShowPlayerDialog(playerid,8600,DIALOG_STYLE_MSGBOX,"Ðàçäåâàëêà","Âû õîòèòå íà÷àòü èëè çàâåðøèòü ðàáîòó?","Íà÷àòü","Çàâåðøèòü"); // 8600
        
    }
        if(
    pickupid == PSkladPickupwe) return ShowPlayerDialog(playerid,8605,DIALOG_STYLE_MSGBOX,"Êàçèíî Êàëèãóëà","Èíôîðìàöèÿ î êàçèíî /cinfo","OK","Îòìåíà"); // 8605
        
    if(pickupid == shahtpick)
        {
            if(
    PlayerMine[playerid] == false) return ShowPlayerDialog(playerid,9995,DIALOG_STYLE_MSGBOX,"{ff9900}Ðàáîòà øàõò¸ðà","{FFFFFF}Âû õîòèòå óñòðîèòüñÿ íà ðàáîòó øàõò¸ðîì?","Äà","Íåò"); // 9995
            
    else return ShowPlayerDialog(playerid,9996,DIALOG_STYLE_MSGBOX,"{ff9900}Ðàáîòà øàõò¸ðà","{FFFFFF}Âû óâåðåíû ÷òî õîòèòå çàâåðøèòü ðàáî÷èé äåíü?","Äà","Íåò"); // 9996
        
    }
        if(
    pickupid == dompiss[0]) return ShowPlayerDialog(playerid,9895,DIALOG_STYLE_MSGBOX,"{FF8C00}Òóàëåò","Ñïðàâèòüíóæäó?","Äà","Íåò"); //9895
        
    if(pickupid == dompiss[1]) return ShowPlayerDialog(playerid,9896,DIALOG_STYLE_MSGBOX,"{FF8C00}Òóàëåò","Ñïðàâèòü íóæäó?","Äà","Íåò"); //9896
        
    if(pickupid == dompiss[2]) return ShowPlayerDialog(playerid,9897,DIALOG_STYLE_MSGBOX,"{FF8C00}Òóàëåò","Ñïðàâèòü íóæäó?","Äà","Íåò"); //9897
        
    if(pickupid == dompiss[3]) return ShowPlayerDialog(playerid,9899,DIALOG_STYLE_MSGBOX,"{FF8C00}Òóàëåò","Ñïðàâèòü íóæäó?","Äà","Íåò"); //9899
        
    if(pickupid == dompiss[4]) return ShowPlayerDialog(playerid,9890,DIALOG_STYLE_MSGBOX,"{FF8C00}Òóàëåò","Ñïðàâèòü íóæäó?","Äà","Íåò"); // 9890
        
    if(pickupid == derbirace[0])
        {
            if(
    EndingderbiRound >= 1) return SendClientMessage(playerid,COLOR_WHITE,"Ðåãèñòðàöèÿ çàêðûòà!");
            if(
    PlayerInfo[playerid][pLevel] < 2) return SendClientMessage(playerid,COLOR_GRAD1,"Ó÷àñòâîâàòü ìîæíî ñ 2-õ ëåò ïðîæèâàíèÿ â øòàòå!");
            if(
    PlayerInfo[playerid][pWarns] >=1) return SendClientMessage(playerid,COLOR_GRAD1,"Íåëüçÿ ó÷àâñòâîâàòü ñ Warnom!");
            if(
    DerbiPlayers >= 20) return SendClientMessage(playerid,COLOR_GRAD1,"Ñëèøêîì ìíîãî ó÷àñòíèêîâ!");
            if(
    Playerderbi[playerid] == 1) return SendClientMessage(playerid,COLOR_WHITE,"Âû óæå çàðåãåñòðèðîâàíû íà ãîíêó!");
            
    SendClientMessage(playerid,0x6495EDFF,"Âû çàðåãåñòðèðîâàëèñü íà ãîíêó!");
            
    DerbiPlayers += 1;
            
    Playerderbi[playerid] = 1;
        }
        if(
    pickupid == derbirace[1])
        {
            
    SetPlayerInterior(playerid,1);
            
    SetPlayerPos(playerid,-2170.4685,638.5978,1052.3750);
            
    SetPlayerFacingAngle(playerid,355.9632);
        }
        if(
    pickupid == derbirace[2])
        {
            
    DerbiPlayers -= 1;
            
    TogglePlayerControllable(playerid,1);
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2113.5208,-442.3560,38.2776);
            
    SetPlayerFacingAngle(playerid,76.4112);
            
    Playerderbi[playerid] = 0;
        }
        if(
    pickupid == gunjob)
        {
            if(
    GetPVarInt(playerid,"Gunjob") == 0ShowPlayerDialog(playerid,D_GUNJOB,0,"Ñáîðùèê îðóæèÿ","Âû äåéñòâèòåëüíî õîòèòå íà÷àòü ðàáîòó?","Äà","Íåò"); // 0
            
    else ShowPlayerDialog(playerid,D_GUNCJOB,0,"Ñáîðùèê îðóæèÿ","Âû äåéñòâèòåëüíî õîòèòå çàâåðøèòü ðàáîòó?","Äà","Íåò"); // 0
        
    }
        if(
    pickupid >= ugonpic[2] && pickupid == ugonpic[4])
        {
            if(
    PlayerInfo[playerid][pJob] != J_UGON) return SendClientMessage(playerid,COLOR_BLUE,"Òû åùå íå ðàáîòàåøü íà íàñ");
            
    DestroyVehicle(createdvehicles[playerid]);
            new 
    Float:X,Float:Y,Float:Z;
            
    GetPlayerPos(playeridX,Y,Z);
            
    createdvehicles[playerid] = CreateVehicle(462,X,Y,Z,170,0,0,300);
            
    PutPlayerInVehicle(playerid,createdvehicles[playerid],0);
            
    CreatedCars[CreatedCar] = createdvehicles[playerid];
            
    SpawnedCar ++;
            
    Fuell[createdvehicles[playerid]] = 300;
            
    UnLockCar(createdvehicles[playerid]);
            
    RepairVehicle(createdvehicles[playerid]);
        }
        if(
    pickupid == ugonpic[0])
        {
            if(
    PlayerInfo[playerid][pJob] == J_UGON) return ShowPlayerDialog(playerid,D_UGON+1,DIALOG_STYLE_LIST,"Âçÿòü çàêàç","Êëàññ Nope\nÊëàññ D\nÊëàññ C\nÊëàññ B\n Êëàññ A","Âûáðàòü","Îòìåíà");
            else 
    ShowPlayerDialog(playerid,D_UGON+2,DIALOG_STYLE_MSGBOX,"Àâòîóãîí","Òû õî÷åø ðàáîòàòü íà íàñ?","Äà","Íåò");
        }
        if(
    pickupid == ugonpic[1])
        {
            if(
    PlayerInfo[playerid][pJob] != J_UGON) return SendClientMessage(playerid,COLOR_BLUE,"Òû åùå íå ðàáîòàåøü íà íàñ!");
            
    DestroyVehicle(createdvehicles[playerid]);
            new 
    Float:X,Float:Y,Float:Z;
            
    GetPlayerPos(playeridX,Y,Z);
            
    createdvehicles[playerid] = CreateVehicle(462,X,Y,Z,170,0,0,300);
            
    PutPlayerInVehicle(playerid,createdvehicles[playerid],0);
            
    CreatedCars[CreatedCar] = createdvehicles[playerid];
            
    SpawnedCar ++;
            
    Fuell[createdvehicles[playerid]] = 200;
            
    UnLockCar(createdvehicles[playerid]);
            
    RepairVehicle(createdvehicles[playerid]);
        }
        if(
    pickupid == dice1)
        {
            
    PlayerPlaySound(playerid,1052,0.0,0.0,0.0);
            
    gDice[playerid] = 1;
            
    SendClientMessage(playerid,COLOR_BLUE,"Âàì âûäàëè èãðàëüíûå êîñòè");
            
    SendClientMessage(playerid,COLOR_WHITE,"(( Ââåäèòå: /dice, ÷òîáû áðîñèòü ))");
        }
        if(
    pickupid == parashut) return GivePlayerWeapon(playerid,46,100);
        if(
    pickupid == razvoz)
        {
            new 
    dil[564];
            
    format(dil,sizeof(dil),"%s%s%s%s%s%s%s%s%s%s%s",
            
    dilMSG[0],dilMSG[1],dilMSG[2],dilMSG[3],dilMSG[4],dilMSG[5],dilMSG[6],dilMSG[7],dilMSG[8],dilMSG[9],dilMSG[10]);
            
    ShowPlayerDialog(playerid,50,DIALOG_STYLE_MSGBOX,"Ðàáîòà: Ðàçâîç÷èê ìàòåðèàëîâ",dil,"Îê",""); // 50
        
    }
        if(
    pickupid == paint)
        {
            if(
    PaintballRound >= 1) return SendClientMessage(playerid,COLOR_GRAD1,"Ðåãèñòðàöèÿ çàêðûòà!");
            if(
    PlayerInfo[playerid][pLevel] <=2) return SendClientMessage(playerid,COLOR_GRAD1,"Ó÷àñòâîâàòü ìîæíî ñ 3-õ ëåò ïðîæèâàíèÿ â øòàòå!");
            if(
    PlayerInfo[playerid][pWarns] >=1) return SendClientMessage(playerid,COLOR_GRAD1,"Íåëüçÿ ó÷àâñòâîâàòü ñ Warnom!");
            if(
    PlayerPaintballing[playerid] == 1) return SendClientMessage(playerid,COLOR_WHITE,"Âû óæå çàðåãåñòðèðîâàíû íà ìàò÷!");
            
    SendClientMessage(playerid,0x6495EDFF,"Âû çàðåãåñòðèðîâàëèñü íà ìàò÷!");
            
    PaintballPlayers += 1;
            
    PlayerPaintballing[playerid] = 1;
        }
        if(
    pickupid == sportzal[0])
        {
            if(
    PlayerInfo[playerid][pJob] == && PlayerInfo[playerid][pMember] == 0) return SetPlayerSkin(playerid,49);
            
    SetPlayerInterior(playerid,5);
            
    SetPlayerPos(playerid,771.4412,-2.7885,1000.7279);
            
    SetPlayerFacingAngle(playerid,21.2131);
        }
        if(
    pickupid == sportzal[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2227.1162,-1723.1353,13.5533);
            
    SetPlayerFacingAngle(playerid,130.5909);
            
    SetPlayerFightingStyle (playeridFIGHT_STYLE_NORMAL);
            if(
    PlayerInfo[playerid][pMember] >= 1) return SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
            if(
    PlayerInfo[playerid][pMember] == 0) return SetPlayerSkin(playerid,PlayerInfo[playerid][pChar]);
        }
        if(
    pickupid == mysti)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2244.3213,-88.3789,35.3203);
            
    SetPlayerFacingAngle(playerid,87.1145);
        }
        if(
    pickupid == pickupex)
        {
            
    SetPlayerPos(playerid,1153.72,-1766.81,16.59);
            
    SetPlayerInterior(playerid,0);
        }
        if(
    pickupid == arace)
        {
            if(
    EndingKartRound >= 1) return SendClientMessage(playerid,COLOR_WHITE,"Ðåãèñòðàöèÿ çàêðûòà!");
            if(
    PlayerInfo[playerid][pLevel] <= 2) return SendClientMessage(playerid,COLOR_GRAD1,"Ó÷àñòâîâàòü ìîæíî ñ 3-õ ëåò ïðîæèâàíèÿ â øòàòå!");
            if(
    PlayerInfo[playerid][pWarns] >= 1) return SendClientMessage(playerid,COLOR_GRAD1,"Íåëüçÿ ó÷àâñòâîâàòü ñ Warnom!");
            if(
    PlayerKarting[playerid] == 1) return SendClientMessage(playerid,COLOR_WHITE,"Âû óæå çàðåãåñòðèðîâàíû íà ãîíêó!");
            
    SendClientMessage(playerid,0x6495EDFF,"Âû çàðåãåñòðèðîâàëèñü íà ãîíêó!");
            
    KartingPlayers += 1;
            
    PlayerKarting[playerid] = 1;
        }
        if(
    pickupid == motorace)
        {
            if(
    EndingmotoRound >= 1) return SendClientMessage(playerid,COLOR_WHITE,"Ðåãèñòðàöèÿ çàêðûòà!");
            if(
    PlayerInfo[playerid][pLevel] <=  2) return SendClientMessage(playerid,COLOR_GRAD1,"Ó÷àñòâîâàòü ìîæíî ñ 2-õ ëåò ïðîæèâàíèÿ â øòàòå!");
            if(
    PlayerInfo[playerid][pWarns] >= 1) return SendClientMessage(playerid,COLOR_GRAD1,"Íåëüçÿ ó÷àâñòâîâàòü ñ Warnom!");
            if(
    Playermoto[playerid] == 1) return SendClientMessage(playerid,COLOR_WHITE,"Âû óæå çàðåãåñòðèðîâàíû íà ãîíêó!");
            
    SendClientMessage(playerid,0x6495EDFF,"Âû çàðåãåñòðèðîâàëèñü íà ãîíêó!");
            
    MotoPlayers += 1;
            
    Playermoto[playerid] = 1;
        }
        if(
    pickupid == ammomer)
        {
            if(
    PlayerInfo[playerid][pMember] == 7)
            {
                
    GivePlayerWeapon(playerid,24,35);
                
    GivePlayerWeapon(playerid,31,150);
                
    SendClientMessage(playerid,0x6495EDFF,"Âàì âûäàíî îðóæèå");
            }
            else return 
    SendClientMessage(playerid,0x6495EDFF,"Âû íå ñîñòîèòå â Ìýðèè!");
        }
        if(
    pickupid == gonkae[0])
        {
            
    SetPlayerInterior(playerid,3);
            
    SetPlayerPos(playerid,831.7769,6.8750,1004.1797);
            
    SetPlayerFacingAngle(playerid,108.1610);
        }
        if(
    pickupid == gonkae[1])
        {
            
    chet[playerid] =0;
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1952.9702,-2177.6379,13.5469);
            
    SetPlayerFacingAngle(playerid,353.8560);
            
    SetPlayerVirtualWorld(playerid,0);
            
    PlayerKarting[playerid] = 0;
            
    CP[playerid] = 0;
            
    KartingPlayers -= 1;
            
    DisablePlayerCheckpoint(playerid);
        }
        if(
    pickupid == lspic[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1650.9956,-1640.6299,83.7788);
            
    SetPlayerFacingAngle(playerid,304.8376);
        }
        if(
    pickupid == lspic[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1658.2383,-1693.4553,15.6094);
            
    SetPlayerFacingAngle(playerid,175.8234);
        }
        if(
    pickupid == pdd) return GameTextForPlayer(playerid,"~y~/pdd",1000,1);
        if(
    pickupid >= ochki[0]&& pickupid <= ochki[1]) return ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,"Âûáèðàéòå:","Êðàñíûå \nƸëòûå \nÇåëåíûå \nÑèíèå \nÔèîëåòîâûå \nÃèïíîç \nÑâåòëî-÷åðíûå \nÃëóïûå \nØàõìàòíûå \nÏðîçðà÷íûå \nÏîêàæèòå ñëåäóþùèå","Áåðó","Íå íàäî"); // 25
        
    if(pickupid == pigpen)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2421.7114,-1221.1361,25.4387);
            
    SetPlayerFacingAngle(playerid,188.2947);
        }
        if(
    pickupid == med1)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2655.4260,635.0480,14.4531);
            
    SetPlayerFacingAngle(playerid,174.0566);
        }
        if(
    pickupid == med2)
        {
            
    SetPlayerInterior(playerid,2);
            
    SetPlayerPos(playerid,215.0339,-137.7250,992.7422);
            
    SetPlayerFacingAngle(playerid,92.4441);
        }
        if(
    pickupid == jizzy)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2623.5752,1410.0554,7.0938);
            
    SetPlayerFacingAngle(playerid,210.1440);
        }
        if(
    pickupid == burger[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1199.2008,-920.0023,43.1096);
            
    SetPlayerFacingAngle(playerid,169.1297);
        }
        if(
    pickupid == pizza[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2103.1228,-1806.1877,13.5547);
            
    SetPlayerFacingAngle(playerid,87.3147);
        }
        if(
    pickupid == pizza[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-1815.9906,615.9285,35.1719);
            
    SetPlayerFacingAngle(playerid,182.5506);
        }
        if(
    pickupid == pizza[2])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,924.3772,-1353.6490,13.3772);
            
    SetPlayerFacingAngle(playerid,182.5506);
        }
        if(
    pickupid == alha)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1833.5907,-1682.9531,13.4669);
            
    SetPlayerFacingAngle(playerid,85.5382);
        }
        if(
    pickupid == mast[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1657.9347,2197.8618,10.8203);
            
    SetPlayerFacingAngle(playerid,183.9151);
            
    SetPlayerVirtualWorld(playerid,0);
            
    RemovePlayerAttachedObject(playerid,0);
        }
        if(
    pickupid == mast[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-1800.4135,1197.5573,25.1194);
            
    SetPlayerFacingAngle(playerid,182.3717);
            
    SetPlayerVirtualWorld(playerid,0);
            
    RemovePlayerAttachedObject(playerid,0);
        }
        if(
    pickupid == mast[2])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,854.0541,-601.7619,18.4219);
            
    SetPlayerFacingAngle(playerid,0.6835);
            
    SetPlayerVirtualWorld(playerid,0);
            
    RemovePlayerAttachedObject(playerid,0);
        }
        if(
    pickupid == burger[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,813.0128,-1616.3463,13.5547);
            
    SetPlayerFacingAngle(playerid,274.2879);
        }
        if(
    pickupid == viaplando)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2269.5942,-77.4715,26.5859);
            
    SetPlayerFacingAngle(playerid,183.8331);
        }
        if(
    pickupid == tengreen)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2307.3132,-1645.9664,14.8270);
            
    SetPlayerFacingAngle(playerid,152.2798);
        }
        if(
    pickupid == narkoenter)
        {
            
    SetPlayerInterior(playerid,5);
            
    SetPlayerPos(playerid,318.2598,1118.8209,1083.8828);
            
    SetPlayerFacingAngle(playerid,2.7967);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == sfpdpic[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2052.4917,458.5779,35.1719);
            
    SetPlayerFacingAngle(playerid,312.1454);
        }
        if(
    pickupid == sfpdpic[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2047.0208,450.5458,139.7422);
            
    SetPlayerFacingAngle(playerid,153.7635);
        }
        if(
    pickupid == lcnpic[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1451.7043,749.8376,11.0234);
            
    SetPlayerFacingAngle(playerid,89.1102);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == lcnpic[1])
        {
            
    SetPlayerInterior(playerid,5);
            
    SetPlayerPos(playerid,1298.6915,-794.2542,1084.0078);
            
    SetPlayerFacingAngle(playerid,349.0933);
            
    SetPlayerVirtualWorld(playerid,2);
        }
        if(
    pickupid == zip[0])
        {
            
    zips[playerid] = 1;
            
    SetPlayerInterior(playerid,18);
            
    SetPlayerPos(playerid,161.6730,-95.5809,1001.8047);
            
    SetPlayerFacingAngle(playerid,1.0183);
        }
        if(
    pickupid == zip[1])
        {
            
    zips[playerid] = 0;
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-1885.0364,862.9141,35.1719);
            
    SetPlayerFacingAngle(playerid,151.0559);
        }
        if(
    pickupid == casino)
        {
            
    gDice[playerid] = 0;
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1658.6047,2253.2153,11.0625);
            
    SetPlayerFacingAngle(playerid,354.6682);
        }
        if(
    pickupid == shop[2])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-1673.5123,431.4032,7.1797);
            
    SetPlayerFacingAngle(playerid,257.8152);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == shop[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1931.2080,-1775.9785,13.5469);
            
    SetPlayerFacingAngle(playerid,263.9579);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == shop[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-81.1964,-1168.3134,2.2146);
            
    SetPlayerFacingAngle(playerid,58.5935);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == shop[3])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,998.2327,-920.4987,42.1797);
            
    SetPlayerFacingAngle(playerid,104.2105);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == victim[0])
        {
            
    SetPlayerInterior(playerid,5);
            
    SetPlayerPos(playerid,225.2378,-8.0487,1002.2109);
            
    SetPlayerFacingAngle(playerid,89.5070);
        }
        if(
    pickupid == victim[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,458.0936,-1501.5496,31.0372);
            
    SetPlayerFacingAngle(playerid,101.4322);
        }
        if(
    pickupid == narkoexit)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2168.0977,-1673.5548,15.0826);
            
    SetPlayerFacingAngle(playerid,217.7220);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == ammonac[4])
        {
            
    SetPlayerInterior(playerid,7);
            
    SetPlayerPos(playerid,313.7110,-140.3784,999.6016);
            
    SetPlayerFacingAngle(playerid,334.2157);
            
    SetPlayerVirtualWorld(playerid,0);
            
    GameTextForPlayer(playerid,"~y~+ /buygun",2000,1);
        }
        if(
    pickupid == ammonac[5])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2156.1997,943.3864,10.8203);
            
    SetPlayerFacingAngle(playerid,81.7582);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == ammonac[2])
        {
            
    SetPlayerInterior(playerid,4);
            
    SetPlayerPos(playerid,286.8773,-83.5809,1001.5156);
            
    SetPlayerFacingAngle(playerid,334.2157);
            
    SetPlayerVirtualWorld(playerid,0);
            
    GameTextForPlayer(playerid,"~y~+ /buygun",2000,1);
        }
        if(
    pickupid == ammonac[3])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2626.6384,210.3960,4.5971);
            
    SetPlayerFacingAngle(playerid,13.1113);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == ammonac[0])
        {
            
    SetPlayerInterior(playerid,1);
            
    SetPlayerPos(playerid,286.9145,-38.6596,1001.5156);
            
    SetPlayerFacingAngle(playerid,329.0564);
            
    SetPlayerVirtualWorld(playerid,0);
            
    GameTextForPlayer(playerid,"~y~+ /buygun",2000,1);
        }
        if(
    pickupid == ammonac[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1366.5776,-1279.5397,13.5469);
            
    SetPlayerFacingAngle(playerid,89.7301);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == rmpic[1])
        {
            
    SetPlayerInterior(playerid,5);
            
    SetPlayerPos(playerid,1298.6915,-794.2542,1084.0078);
            
    SetPlayerFacingAngle(playerid,349.0933);
            
    SetPlayerVirtualWorld(playerid,1);
        }
        if(
    pickupid == rmpic[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,940.2619,1733.4958,8.8516);
            
    SetPlayerFacingAngle(playerid,276.0833);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == yakexit[1])
        {
            
    SetPlayerInterior(playerid,5);
            
    SetPlayerPos(playerid,1298.6915,-794.2542,1084.0078);
            
    SetPlayerFacingAngle(playerid,349.0933);
        }
        if(
    pickupid == brigvqhod)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2722.3137,-316.4399,7.4383);
            
    SetPlayerFacingAngle(playerid,270.9917);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == brigvhod)
        {
            
    SetPlayerInterior(playerid,5);
            
    SetPlayerPos(playerid,1298.6915,-794.2542,1084.0078);
            
    SetPlayerFacingAngle(playerid,276.0833);
            
    SetPlayerVirtualWorld(playerid,14);
        }
        if(
    pickupid == yakexit[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1457.5305,2773.4219,10.8203);
            
    SetPlayerFacingAngle(playerid,276.0466);
        }
        if(
    pickupid == fbi1)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-2453.7595,503.7701,30.0798);
            
    SetPlayerFacingAngle(playerid,272.4807);
        }
        if(
    pickupid == fbi)
        {
            
    SetPlayerInterior(playerid,5);
            
    SetPlayerPos(playerid,322.1685,304.5911,999.1484);
            
    SetPlayerFacingAngle(playerid,6.1412);
        }
        if(
    pickupid == lspd[0])
        {
            if(
    IsAArm(playerid)|| IsACop(playerid) || IsAMayor(playerid)|| keys[playerid] == 1)
            {
                
    SetPlayerInterior(playerid,6);
                
    SetPlayerPos(playerid,246.6428,65.8026,1003.6406);
                
    SetPlayerFacingAngle(playerid,2.2168);
            }
             else return 
    SendClientMessage(playerid,COLOR_WHITE,"Äâåðü çàïåðòà!");
        }
        if(
    pickupid == lspd[1])
        {
            if(
    IsAArm(playerid)|| IsACop(playerid) || IsAMayor(playerid)|| keys[playerid] == 1)
            {
                
    SetPlayerInterior(playerid,0);
                
    SetPlayerPos(playerid,1547.14,-1675.85,13.95);
                
    SetPlayerFacingAngle(playerid,91.8310);
                
    SetPlayerVirtualWorld(playerid,0);
                
    keys[playerid] = 0;
            }
             else return 
    SendClientMessage(playerid,COLOR_WHITE,"Äâåðü çàïåðòà!");
        }
        if(
    pickupid == lspd[4])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1528.010864,-1678.141723,5.890625);
            
    SetPlayerFacingAngle(playerid,259.617370);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == lspd[2])
        {
            
    SetPlayerInterior(playerid,6);
            
    SetPlayerPos(playerid,316.3837,-167.8547,999.5938);
            
    SetPlayerFacingAngle(playerid,34.3574);
            
    SetPlayerVirtualWorld(playerid,5);
        }
        if(
    pickupid == sf[4])
        {
            if(
    IsAArm(playerid)|| IsACop(playerid) || IsAMayor(playerid)|| keys[playerid] == 1
            {
                
    SetPlayerInterior(playerid,6);
                
    SetPlayerPos(playerid,316.3837,-167.8547,999.5938);
                
    SetPlayerFacingAngle(playerid,34.3574);
                
    SetPlayerVirtualWorld(playerid,1);
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Äâåðü çàïåðòà!");
        }
        if(
    pickupid == sf[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,-1606.4532,674.2636,-5.2422);
            
    SetPlayerFacingAngle(playerid,357.2527);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == sf[2])
        {
            
    SetPlayerInterior(playerid,10);
            
    SetPlayerPos(playerid,217.3147,121.3382,999.0156);
            
    SetPlayerFacingAngle(playerid,272.8898);
        }
        if(
    pickupid == sf[3])
        {
            if(
    IsAArm(playerid) || IsACop(playerid) || IsAMayor(playerid) || keys[playerid] == 1)
            {
                
    SetPlayerInterior(playerid,0);
                
    SetPlayerPos(playerid,-1590.8289,716.0479,-5.2422);
                
    SetPlayerFacingAngle(playerid,269.9364);
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Äâåðü çàïåðòà!");
        }
        if(
    pickupid == lspd[5])
        {
            
    SetPlayerInterior(playerid,6);
            
    SetPlayerPos(playerid,246.5438,85.7663,1003.6406);
            
    SetPlayerFacingAngle(playerid,278.0311);
        }
        if(
    pickupid == sf[1])
        {
            if(
    IsAArm(playerid)|| IsACop(playerid) || IsAMayor(playerid)|| keys[playerid] == 1)
            {
                
    SetPlayerInterior(playerid,0);
                
    SetPlayerPos(playerid,-1590.8289,716.0479,-5.2422);
                
    SetPlayerFacingAngle(playerid,269.9364);
                
    SetPlayerVirtualWorld(playerid,0);
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Äâåðü çàïåðòà!");
        }
        if(
    pickupid == lspd[3])
        {
            if(
    IsAArm(playerid)|| IsACop(playerid) || IsAMayor(playerid)|| keys[playerid] == 1)
            {
                
    SetPlayerInterior(playerid,0);
                
    SetPlayerPos(playerid,1568.6962,-1692.2069,5.8906);
                
    SetPlayerFacingAngle(playerid,259.617370);
                
    SetPlayerVirtualWorld(playerid,0);
                
    keys[playerid] = 0;
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Äâåðü çàïåðòà!");
        }
        if(
    pickupid == armijavhod)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,156.4952,1945.6383,20.0000);
            
    SetPlayerFacingAngle(playerid,183.1738);
        }
        if(
    pickupid == armijavihod)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,139.5660,1936.6910,19.2734);
            
    SetPlayerFacingAngle(playerid,183.1738);
        }
        if(
    pickupid == autoschool1)
        {
            
    SetPlayerInterior(playerid,3);
            
    SetPlayerVirtualWorld(playerid,1);
            
    SetPlayerPos(playerid,-2029.9407,-105.9314,1035.1719);
            
    SetPlayerFacingAngle(playerid,183.1738);
        }
        if(
    pickupid == avtosh[0])
        {
            
    SetPlayerInterior(playerid,3);
            
    SetPlayerVirtualWorld(playerid,1);
            
    SetPlayerPos(playerid,-2029.7194,-118.0359,1035.1719);
            
    SetPlayerFacingAngle(playerid,359.7984);
        }
        if(
    pickupid == avtosh[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,-2029.9843,-123.2148,35.2010);
            
    SetPlayerFacingAngle(playerid,178.4111);
        }
        if(
    pickupid == ash)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,-2026.9436,-99.6266,35.1641);
            
    SetPlayerFacingAngle(playerid,355.8038);
        }
        if(
    pickupid == lvpdpic[0])
        {
            
    SetPlayerInterior(playerid,3);
            
    SetPlayerVirtualWorld(playerid,122);
            
    SetPlayerPos(playerid,238.5033,141.1578,1003.0234);
            
    SetPlayerFacingAngle(playerid,359.1617);
        }
        if(
    pickupid == lvpdpic[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,2295.1934,2451.8459,10.8203);
            
    SetPlayerFacingAngle(playerid,94.8742);
        }
        if(
    pickupid == lvpdpic[2])
        {
            
    SetPlayerInterior(playerid,3);
            
    SetPlayerVirtualWorld(playerid,122);
            
    SetPlayerPos(playerid,288.7445,169.2445,1007.1719);
            
    SetPlayerFacingAngle(playerid,9.7598);
        }
        if(
    pickupid == lvpdpic[3])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,2340.1965,2455.9792,14.9688);
            
    SetPlayerFacingAngle(playerid,178.3347);
        }
        if(
    pickupid == helpnoob)
        {
            new 
    pdddialog[730];
            
    format(pdddialog,sizeof(pdddialog),"%s%s%s%s%s%s%s%s%s%s%s",newPlayer[0],newPlayer[1],newPlayer[2],newPlayer[3],newPlayer[4],newPlayer[5],newPlayer[6],newPlayer[7],
            
    newPlayer[8],newPlayer[9],newPlayer[10]);
            return 
    ShowPlayerDialog(playerid,D_NULL,0,"{ffffff}",pdddialog,"Çàêðûòü","");
        }
        if(
    pickupid == lvpdpic[4]) return ShowPlayerDialog(playerid,8240,DIALOG_STYLE_MSGBOX,"Âõîä","Êóäà Âû õîòèòå âîéòè?","Ñêëàä","Íà êðûøó"); // 8240
        
    if(pickupid == lvpdpic[5])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,2293.3225,2468.6162,10.8203);
            
    SetPlayerFacingAngle(playerid,93.6957);
        }
        if(
    pickupid == lvpdpic[6])
        {
            
    ShowPlayerDialog(playerid,8241,DIALOG_STYLE_MSGBOX,"Âõîä","Êóäà Âû õîòèòå âîéòè?","Ñêëàä","Âíèç"); // 8241
        
    }
        if(
    pickupid >= chekmatlva[0] && pickupid <= chekmatlva[9])
        {
            if(!
    IsAGang(playerid)) return SendClientMessage(playerid,COLOR_GREY,"Âû íå áàíäèò");
            if(
    armmatbi <= 0) return SendClientMessage(playerid,COLOR_GRAD1,"Íà ñêëàäå íåò ìàòåðèàëîâ!");
            if(
    PlayerInfo[playerid][pMats] == 500) return SendClientMessage(playerid,COLOR_GRAD1,"Íåëüçÿ óíåñòè áîëüøå");
            
    SendClientMessage(playerid,COLOR_BLUE,"Âû âçÿëè 500 ìàòåðèàëîâ ñî ñêëàäà Çîíû 51!");
            
    armmatbi -= 500;
            
    PlayerInfo[playerid][pMats] += 500;
        }
        if(
    pickupid >= chekmats[0]&& pickupid <= chekmats[2])
        {
            if (!
    IsAGang(playerid)) return SendClientMessage(playerid,COLOR_GREY,"Âû íå áàíäèò");
            if(
    armmatsf <= 0) return SendClientMessage(playerid,COLOR_GRAD1,"Íà ñêëàäå íåò ìàòåðèàëîâ!");
            if(
    PlayerInfo[playerid][pMats] == 500) return SendClientMessage(playerid,COLOR_GRAD1,"Íåëüçÿ óíåñòè áîëüøå");
            
    SendClientMessage(playerid,COLOR_BLUE,"Âû âçÿëè 500 ìàòåðèàëîâ ñî ñêëàäà Àðìèè: Àâèàíîñåö!");
            
    armmatsf -= 500;
            
    PlayerInfo[playerid][pMats] += 500;
        }
        if(
    pickupid >= homelf[0]&& pickupid <= homelf[25])
        {
            for(new 
    0sizeof(HouseInfo); i++)
            {
                if(
    PlayerToPoint(5,playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]))
                {
                    if(
    GetPlayerVirtualWorld(playerid) == i+50)
                    {
                        new 
    hospital[64];
                        if(
    HouseInfo[i][hHel] == 0) return SendClientMessage(playerid,COLOR_GRAD1," äîìå íåò {fa0009}àïòå÷åê");
                        
    format(hospital,sizeof(hospital),"Âû áûëè âûëå÷åíû äî 100 ïðîöåíòîâ. Îñòàëîñü àïòå÷åê {fa0009}%d",HouseInfo[i][hHel]);
                        
    SendClientMessage(playerid,COLOR_WHITE,hospital);
                        
    HouseInfo[i][hHel] -= 1;
                        
    SetPlayerHealth(playerid,100.0);
                        
    SetPlayerChatBubble(playerid,"èñïîëüçîâàë(à) {fa0009}àïòå÷êó",COLOR_PURPLE,30.0,10000);
                        return 
    true;
                    }
                }
            }
        }
        if(
    pickupid == bankd2)
        {
            if(
    PlayerInfo[playerid][pHousecash] <= 0)
            {
                
    ShowPlayerDialog(playerid,596,DIALOG_STYLE_MSGBOX,"{FFFFFF}Æèëüå","{FFFFFF}Âû äåéñòâèòåëüíî õîòèòå çàáðàòü äåíüãè çà æèëüå?","Äà","Íåò"); // 596
            
    }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Íåäîñòóïíî!");
        }
        if(
    pickupid >= grib[0]&& pickupid <= grib[52])
        {
            new 
    GR[67];
            
    format(GR,sizeof(GR),"%s ñðåçàë(à) ãðèá",Name_OPPUP);
            
    ProxDetector(30.0,playerid,GR,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
    PlayerInfo[playerid][pGrib] += 1;
            
    ApplyAnimation(playerid,"BOMBER","BOM_Plant",6.1,0,0,0,0,0,1);
            
    format(GR,sizeof(GR),"Ãðèáîâ ñîáðàíî: {ffffff}%d",PlayerInfo[playerid][pGrib]);
            
    SendClientMessage(playerid,COLOR_GREEN,GR);
        }
        if(
    pickupid == buygunzakon[0])
        {
            if(
    PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == 2)
            {
                if(
    fbimats <= 0) return SendClientMessage(playerid,COLOR_GRAD1,"Íà ñêëàäå íåò ìàòåðèàëîâ!");
                {
                    
    GivePlayerWeapon(playerid,24,100);
                    
    GivePlayerWeapon(playerid,41,1000);
                    
    GivePlayerWeapon(playerid,29,100);
                    
    SetPlayerArmour(playerid,100);
                    
    SetPlayerHealth(playerid,100);
                    
    PlayerInfo[playerid][pHP,] =100;
                    
    fbimats -= 100;
                    
    SendClientMessage(playerid,COLOR_ISPOLZUY,"Âàì âûäàíî: Deagle (100),Spray (1000),MP5 (100)");
                }
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Âû íå àãåíò FBI!");
        }
        if(
    pickupid == buygunzakon[1])
        {
            if(
    PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == 1)
            {
                if(
    lspdmatbi <= 0) return SendClientMessage(playerid,COLOR_GRAD1,"Íà ñêëàäå íåò ìàòåðèàëîâ!");
                {
                    
    GivePlayerWeapon(playerid,3,1);
                    
    GivePlayerWeapon(playerid,24,100);
                    
    SetPlayerHealth(playerid,100);
                    
    SetPlayerArmour(playerid,100);
                    
    PlayerInfo[playerid][pHP.] = 100;
                    
    lspdmatbi -= 100;
                    
    SendClientMessage(playerid,COLOR_ISPOLZUY,"Âàì âûäàíî: Äóáèíêà, Deagle (100)");
                    
    Police +=1;
                }
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Âû íå ñîñòîèòå â LSPD!");
        }
        if(
    pickupid == buygunzakon[3])
        {
            if(
    PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
            {
                if(
    lvpdmats <= 0) return SendClientMessage(playerid,COLOR_GRAD1,"Íà ñêëàäå íåò ìàòåðèàëîâ!");
                {
                    
    GivePlayerWeapon(playerid,3,1);
                    
    GivePlayerWeapon(playerid,24,100);
                    
    SetPlayerHealth(playerid,100);
                    
    SetPlayerArmour(playerid,100);
                    
    PlayerInfo[playerid][pHP.] = 100;
                    
    lvpdmats -= 100;
                    
    SendClientMessage(playerid,COLOR_ISPOLZUY,"Âàì âûäàíî: Äóáèíêà, Deagle (100)");
                    
    Police +=1;
                }
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Âû íå ñîñòîèòå â LVPD!");
        }
        if(
    pickupid == buygunzakon[2])
        {
            if(
    PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
            {
                if(
    sfpdmats <= 0) return SendClientMessage(playerid,COLOR_GRAD1,"Íà ñêëàäå íåò ìàòåðèàëîâ!");
                {
                    
    GivePlayerWeapon(playerid,3,1);
                    
    GivePlayerWeapon(playerid,24,100);
                    
    SetPlayerHealth(playerid,100);
                    
    SetPlayerArmour(playerid,100);
                    
    PlayerInfo[playerid][pHP.] = 100;
                    
    sfpdmats -= 100;
                    
    SendClientMessage(playerid,COLOR_ISPOLZUY,"Âàì âûäàíî: Äóáèíêà, Deagle (100)");
                    
    Police += 1;
                }
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Âû íå cîñòîèòå â SFPD!");
        }
        if(
    pickupid >= serdce[0]&& pickupid <= serdce[4])
        {
            if(
    PlayerInfo[playerid][pLevel] <= 5)
            {
                
    SetPlayerHealth(playerid,100);
                
    PlayerInfo[playerid][pHP.] = 100;
            }
            else return 
    SendClientMessage(playerid,COLOR_RED,"Òîëüêî äëÿ íîâè÷êîâ! (5 ëâë)");
        }
        if(
    pickupid == cashs)
        {
            if(
    Works[playerid] == false) return SendClientMessage(playerid,0xFFFFFFFF,"Âû åùå íå óñòðîèëèñü!");
            if(
    JobAmmount[playerid] == 0) return SendClientMessage(playerid,0xFFFFFFFF,"Òû åùå íè÷åãî íå çàðàáîòàë!");
            if(
    ProrabID[playerid] != INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"Âû ðàáîòàåòå íà ïðîðàáà, ïðîñèòå çàðïëàòó ó íåãî");
            new 
    gruzch[35];
            
    format(gruzch,sizeof(gruzch),"Âû çàðàáîòàëè: {FFFFFF}%d âèðò",JobAmmount[playerid]*200);
            
    PlayerInfo[playerid][pCash] += JobAmmount[playerid]*50;
            
    SendClientMessage(playerid,COLOR_GREEN,gruzch);
            
    JobAmmount[playerid] = 0;
            
    SendClientMessage(playerid,COLOR_GREEN,"Ðàáî÷èé äåíü çàâåðø¸í!");
            
    Works[playerid] = false;
            
    JobAmmount[playerid] = 0;
            
    JobCP[playerid] = 0;
            
    SetPlayerSkin(playerid,PlayerInfo[playerid][pChar]);
            
    DisablePlayerCheckpoint(playerid);

        }
        if(
    pickupid == clothes) return ShowPlayerDialog(playerid,4423,DIALOG_STYLE_MSGBOX,"Ðàçäåâàëêà","Âûáåðèòå îäåæäó","Ôîðìà","Îáû÷íàÿ"); // 4423
        
    if(pickupid == skinshop[0] || pickupid == skinshop[2])
        {
            if(
    PlayerInfo[playerid][pSex] != 1) return SendClientMessage(playerid,COLOR_WHITE,"Âû îøèáëèñü êàáèíêîé");
            if(
    PlayerInfo[playerid][pMember] == 0)
            {
                
    OldSkin[playerid] = GetPlayerSkin(playerid);
                
    SetPlayerInterior(playerid,5);
                
    ShowMenuForPlayer(skinshopmagaz[0],playerid);
                
    SendClientMessage(playerid,COLOR_LIGHTRED,"Èñïîëüçóéòå êëàâèøó Ïðîáåë, ÷òîáû âûáðàòü ñêèí");
                
    SendClientMessage(playerid,COLOR_GRAD1,"Åñëè Âû ñëó÷àéíî íàæàëè 'Enter' è ìåíþ ïðîïàëî, íàæìèòå 'Enter' åùå ðàç");
                
    TogglePlayerControllable(playerid,0);
                
    SelectChar[playerid] = 255;
                
    ChosenSkin[playerid] = 230;
                
    CharPrice[playerid] = 1000;
                
    SelectCharPlace[playerid] = 1;
                
    PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
                new 
    skin =random(100);
                
    SetPlayerVirtualWorld(playerid,skin);
                
    CharPrice[playerid] = 1000;
                
    GameTextForPlayer(playerid,"~g~~n~~n~~n~~n~~n~~n~COST: ~y~1000",2000,3);
                return 
    true;
            }
            if(
    PlayerInfo[playerid][pMember] >= 1)
            {
                
    ShowMenuForPlayer(ChoseSkin,playerid);
                if(
    PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 59; }
                else if(
    PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; }
                else if(
    PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 287; }
                else if(
    PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 70; }
                else if(
    PlayerInfo[playerid][pMember] == 5) { ChosenSkin[playerid] = 223; }
                else if(
    PlayerInfo[playerid][pMember] == 6) { ChosenSkin[playerid] = 120; }
                else if(
    PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 57; }
                else if(
    PlayerInfo[playerid][pMember] == 8) { ChosenSkin[playerid] = 171; }
                else if(
    PlayerInfo[playerid][pMember] == 9) { ChosenSkin[playerid] = 250; }
                else if(
    PlayerInfo[playerid][pMember] == 10) { ChosenSkin[playerid] = 280; }
                else if(
    PlayerInfo[playerid][pMember] == 11) { ChosenSkin[playerid] = 59; }
                else if(
    PlayerInfo[playerid][pMember] == 12) { ChosenSkin[playerid] = 102; }
                else if(
    PlayerInfo[playerid][pMember] == 13) { ChosenSkin[playerid] = 108; }
                else if(
    PlayerInfo[playerid][pMember] == 14) { ChosenSkin[playerid] = 111; }
                else if(
    PlayerInfo[playerid][pMember] == 15) { ChosenSkin[playerid] = 106; }
                else if(
    PlayerInfo[playerid][pMember] == 16) { ChosenSkin[playerid] = 250; }
                else if(
    PlayerInfo[playerid][pMember] == 17) { ChosenSkin[playerid] = 114; }
                else if(
    PlayerInfo[playerid][pMember] == 18) { ChosenSkin[playerid] = 173; }
                else if(
    PlayerInfo[playerid][pMember] == 19) { ChosenSkin[playerid] = 287; }
                else if(
    PlayerInfo[playerid][pMember] == 20) { ChosenSkin[playerid] = 250; }
                else if(
    PlayerInfo[playerid][pMember] == 21) { ChosenSkin[playerid] = 280; }
                else if(
    PlayerInfo[playerid][pMember] == 22) { ChosenSkin[playerid] = 70; }
                else if(
    PlayerInfo[playerid][pMember] == 24) { ChosenSkin[playerid] = 184; }
                else if(
    PlayerInfo[playerid][pMember] == 25) { ChosenSkin[playerid] = 292; }
                else if(
    PlayerInfo[playerid][pMember] == 26) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 27) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 28) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 29) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 30) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 31) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 32) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 33) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 34) { ChosenSkin[playerid] = 247; }
                else return 
    true;
                
    SetPlayerInterior(playerid,5);
                
    SetPlayerVirtualWorld(playerid,3);
                
    TogglePlayerControllable(playerid,0);
                
    SelectChar[playerid] = 255;
                
    SelectCharID[playerid] = PlayerInfo[playerid][pMember];
                
    SelectCharPlace[playerid] = 1;
                
    PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
                return 
    true;
            }
        }
        if(
    pickupid == skinshop[1] || pickupid == skinshop[3])
        {
            if(
    PlayerInfo[playerid][pSex] != 2) return SendClientMessage(playerid,COLOR_WHITE,"Âû îøèáëèñü êàáèíêîé");
            if(
    PlayerInfo[playerid][pMember] == 0)
            {
                
    OldSkin[playerid] = GetPlayerSkin(playerid);
                
    SetPlayerInterior(playerid,5);
                
    PlayerInfo[playerid][pChar] = 90;
                
    ShowMenuForPlayer(skinshopmagaz[1],playerid);
                
    SendClientMessage(playerid,COLOR_LIGHTRED,"Èñïîëüçóéòå êëàâèøó Ïðîáåë, ÷òîáû âûáðàòü ñêèí");
                
    SendClientMessage(playerid,COLOR_GRAD1,"Åñëè Âû ñëó÷àéíî íàæàëè 'Enter' è ìåíþ ïðîïàëî, íàæìèòå 'Enter' åùå ðàç");
                
    TogglePlayerControllable(playerid,0);
                
    SelectChar[playerid] = 255;
                
    ChosenSkin[playerid] = 90;
                
    SelectCharPlace[playerid] = 1;
                
    PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
                new 
    skin =random(100);
                
    SetPlayerVirtualWorld(playerid,skin);
                
    PlayerPlaySound(playerid,1185,0.0,0.0,0.0);
                
    CharPrice[playerid] = 10000;
                
    GameTextForPlayer(playerid,"~g~~n~~n~~n~~n~~n~~n~COST: ~y~10000",2000,3);
                return 
    true;
            }
            if(
    PlayerInfo[playerid][pMember] >= 1)
            {
                
    ShowMenuForPlayer(ChoseSkin,playerid);
                if(
    PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 59; }
                else if(
    PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; }
                else if(
    PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 287; }
                else if(
    PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 70; }
                else if(
    PlayerInfo[playerid][pMember] == 5) { ChosenSkin[playerid] = 223; }
                else if(
    PlayerInfo[playerid][pMember] == 6) { ChosenSkin[playerid] = 120; }
                else if(
    PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 57; }
                else if(
    PlayerInfo[playerid][pMember] == 8) { ChosenSkin[playerid] = 171; }
                else if(
    PlayerInfo[playerid][pMember] == 9) { ChosenSkin[playerid] = 250; }
                else if(
    PlayerInfo[playerid][pMember] == 10) { ChosenSkin[playerid] = 280; }
                else if(
    PlayerInfo[playerid][pMember] == 11) { ChosenSkin[playerid] = 59; }
                else if(
    PlayerInfo[playerid][pMember] == 12) { ChosenSkin[playerid] = 102; }
                else if(
    PlayerInfo[playerid][pMember] == 13) { ChosenSkin[playerid] = 108; }
                else if(
    PlayerInfo[playerid][pMember] == 14) { ChosenSkin[playerid] = 111; }
                else if(
    PlayerInfo[playerid][pMember] == 15) { ChosenSkin[playerid] = 106; }
                else if(
    PlayerInfo[playerid][pMember] == 16) { ChosenSkin[playerid] = 250; }
                else if(
    PlayerInfo[playerid][pMember] == 17) { ChosenSkin[playerid] = 114; }
                else if(
    PlayerInfo[playerid][pMember] == 18) { ChosenSkin[playerid] = 173; }
                else if(
    PlayerInfo[playerid][pMember] == 19) { ChosenSkin[playerid] = 287; }
                else if(
    PlayerInfo[playerid][pMember] == 20) { ChosenSkin[playerid] = 250; }
                else if(
    PlayerInfo[playerid][pMember] == 21) { ChosenSkin[playerid] = 280; }
                else if(
    PlayerInfo[playerid][pMember] == 22) { ChosenSkin[playerid] = 70;  }
                else if(
    PlayerInfo[playerid][pMember] == 24) { ChosenSkin[playerid] = 184; }
                else if(
    PlayerInfo[playerid][pMember] == 25) { ChosenSkin[playerid] = 292; }
                else if(
    PlayerInfo[playerid][pMember] == 26) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 27) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 28) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 29) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 30) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 31) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 32) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 33) { ChosenSkin[playerid] = 247; }
                else if(
    PlayerInfo[playerid][pMember] == 34) { ChosenSkin[playerid] = 247; }
                else return 
    true;
                
    SetPlayerInterior(playerid,5);
                
    SetPlayerVirtualWorld(playerid,3);
                
    TogglePlayerControllable(playerid,0);
                
    SelectChar[playerid] = 255;
                
    SelectCharID[playerid] = PlayerInfo[playerid][pMember];
                
    SelectCharPlace[playerid] = 1;
                
    PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
                return 
    true;
            }
        }
        if(
    pickupid == marexit)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1478.7963,-1814.1805,14.2739);
            
    SetPlayerFacingAngle(playerid,0.3133);
            
    DisablePlayerCheckpoint(playerid);
            
    PicCP[playerid] = 0;
            
    CP[playerid] = 0;
        }
         if(
    pickupid == marenter[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1477.9446,-1812.4501,13.5685);
            
    SetPlayerFacingAngle(playerid,94.6852);
            
    DisablePlayerCheckpoint(playerid);
            
    CP[playerid] = 0;
        }
        if(
    pickupid == marenter[2])
        {
            
    SetPlayerInterior(playerid,3);
            
    SetPlayerPos(playerid,366.4958,193.5977,1008.3828);
            
    SetPlayerFacingAngle(playerid,91.0948);
            
    SetPlayerCheckpoint(playerid,359.8466,184.7337,1008.3828,1.5);
            
    PicCP[playerid] = 2;
        }
        if(
    pickupid == marenter[0])
        {
            
    SetPlayerInterior(playerid,3);
            
    SetPlayerPos(playerid,385.9440,173.6978,1008.3828);
            
    SetPlayerFacingAngle(playerid,88.1044);
            
    SetPlayerCheckpoint(playerid,359.8466,184.7337,1008.3828,1.5);
            
    PicCP[playerid] = 2;
        }
        if(
    pickupid == rifa[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,2185.96,-1811.94,13.55);
            
    SetPlayerFacingAngle(playerid,400);
        }
        if(
    pickupid == rifa[1])
        {
            
    SetPlayerInterior(playerid,18);
            
    SetPlayerVirtualWorld(playerid,63);
            
    SetPlayerPos(playerid,-226.9188,1401.3635,27.7656);
            
    SetPlayerFacingAngle(playerid,500);
        }
        if(
    pickupid == vagospic[0])
        {
            
    SetPlayerInterior(playerid,4);
            
    SetPlayerVirtualWorld(playerid,75);
            
    SetPlayerPos(playerid,303.2970,307.1475,1003.5391);
            
    SetPlayerFacingAngle(playerid,500);
        }
        if(
    pickupid == vagospic[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,2774.2017,-1628.0233,12.1775);
            
    SetPlayerFacingAngle(playerid,330.4577);
        }
        if(
    pickupid == grooveenter)
        {
            
    SetPlayerInterior(playerid,3);
            
    SetPlayerPos(playerid,2496.1580,-1694.5743,1014.7422);
            
    SetPlayerFacingAngle(playerid,177.8856);
            
    SetPlayerVirtualWorld(playerid,1);
        }
        if(
    pickupid == grooveexit)
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2495.1199,-1688.3727,13.7653);
            
    SetPlayerFacingAngle(playerid,4.2929);
            
    SetPlayerVirtualWorld(playerid,0);
        }
        if(
    pickupid == aztecpic[0])
        {
            
    SetPlayerInterior(playerid,8);
            
    SetPlayerVirtualWorld(playerid,36);
            
    SetPlayerPos(playerid,-42.31,1408.18,1084.43);
            
    SetPlayerFacingAngle(playerid,1000);
        }
        if(
    pickupid == aztecpic[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,1667.4498,-2108.3840,13.8906);
            
    SetPlayerFacingAngle(playerid,178.1356);
        }
        if(
    pickupid == bankpic[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2307.6462,-15.7474,26.7496);
            
    SetPlayerFacingAngle(playerid,281.2246);
        }
        if(
    pickupid == bankpic[1])
        {
            if(
    ebanksf[playerid] == 1)
            {
                
    SetPlayerInterior(playerid,0);
                
    SetPlayerPos(playerid,-2169.2756,251.8620,35.3314);
                
    SetPlayerFacingAngle(playerid,267.6245);
                
    ebanksf[playerid] = 0;
                return 
    true;
            }
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,1414.14,-1702.78,13.5395);
            
    SetPlayerFacingAngle(playerid,209.7472);
        }
        if(
    pickupid == banksf)
        {
            
    ebanksf[playerid] = 1;
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,2307.6462,-15.7474,26.7496);
            
    SetPlayerFacingAngle(playerid,281.2246);
        }
        if(
    pickupid == ballasvhod[0])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerVirtualWorld(playerid,0);
            
    SetPlayerPos(playerid,2647.9932,-2021.5747,13.5469);
            
    SetPlayerFacingAngle(playerid,100);
        }
        if(
    pickupid == ballasvhod[1])
        {
            
    SetPlayerInterior(playerid,6);
            
    SetPlayerVirtualWorld(playerid,34);
            
    SetPlayerPos(playerid,-68.6311,1353.8743,1080.2109);
            
    SetPlayerFacingAngle(playerid,100);
        }
        if(
    pickupid == sklad[1])
        {
            
    SetPlayerInterior(playerid,0);
            
    SetPlayerPos(playerid,338.3804,1949.1343,22.0174);
            
    SetPlayerFacingAngle(playerid,92.2485);
        }
        if(
    pickupid == sklad[0])
        {
            
    SetPlayerInterior(playerid,6);
            
    SetPlayerPos(playerid,316.9104,-168.6356,999.5938);
            
    SetPlayerFacingAngle(playerid,355.8037);
        }
        if(
    pickupid == gunarm[0])
        {
            if(
    PlayerInfo[playerid][pMember] != 19) return SendClientMessage(playerid,COLOR_WHITE,"Âû íå ñîëäàò Çîíû 51!");
            if(
    armmatbi <= 0) return SendClientMessage(playerid,COLOR_GRAD1,"Íà ñêëàäå íåò îðóæèÿ!");
            
    GivePlayerWeapon(playerid,24,100);
            
    GivePlayerWeapon(playerid,31,200);
            
    SetPlayerArmour(playerid,100);
            
    SetPlayerHealth(playerid,100);
            
    PlayerInfo[playerid][pHP.] = 100;
            
    armmatbi -= 100;
            
    SendClientMessage(playerid,COLOR_ISPOLZUY,"Âàì âûäàíî: Deagle (100),M4 (200), Áðîíèæåëåò, Ñóõîé ïà¸ê");
        }
        if(
    pickupid == gunarm[1])
        {
            if(
    PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == 3
            {
                if(
    armmatsf <= 0) return SendClientMessage(playerid,COLOR_GRAD1,"Íà ñêëàäå íåò îðóæèÿ!");
                
    GivePlayerWeapon(playerid,24,100);
                
    GivePlayerWeapon(playerid,31,200);
                
    SetPlayerArmour(playerid,100);
                
    SetPlayerHealth(playerid,100);
                
    PlayerInfo[playerid][pHP.] = 100;
                
    armmatsf -= 100;
                
    SendClientMessage(playerid,COLOR_ISPOLZUY,"Âàì âûäàíî: Deagle (100),M4 (200), Áðîíèæåëåò, Ñóõîé ïà¸ê");
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Âû íå ñîëäàò Àðìèè SF!");
        }
        if(
    pickupid == zonaa)
        {
            if(
    PlayerInfo[playerid][pMember] == 19 || keys[playerid] == 1)
            {
                
    SetPlayerInterior(playerid,0);
                
    SetPlayerPos(playerid,279.4233,1835.0087,17.6481);
                
    SetPlayerFacingAngle(playerid,17.2727);
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Ó âàñ íåò êëþ÷à!");
        }
        if(
    pickupid == zona)
        {
            if(
    PlayerInfo[playerid][pMember] == 19 || keys[playerid] == 1
            {
                
    SetPlayerInterior(playerid,0);
                
    SetPlayerPos(playerid,291.8297,1836.4666,17.6406);
                
    SetPlayerFacingAngle(playerid,346.3333);
            }
            else return 
    SendClientMessage(playerid,COLOR_WHITE,"Ó âàñ íåò êëþ÷à!");
        }
        else if(
    pickupid == plen[0])
        {
            
    SetPlayerInterior(playerid,6);
            
    SetPlayerPos(playerid,308.0302,-159.7244,999.5938);
            
    SetPlayerFacingAngle(playerid,258.2231);
        }
        else if(
    pickupid == plen[1])
        {
            
    SetPlayerInterior(playerid,6);
            
    SetPlayerPos(playerid,303.6572,-159.7246,999.5938);
            
    SetPlayerFacingAngle(playerid,88.7500);
        }
        new 
    newcar GetPlayerVehicleID(playerid);
        new 
    nearveh GetNearestVehicle(playerid);
        if(
    pickupid == avtopick[nearveh])
        {
            if(!
    IsPlayerAttachedObjectSlotUsed(playerid,1)) return SendClientMessage(playerid,COLOR_GRAD1,"Ó âàñ íåò ìåøêà!");
            if(!
    IsPlayerInAnyVehicle(playerid))
            {
                new 
    RabMesh[39];
                
    JobAmmount[playerid]++;
                
    format(RabMesh,sizeof(RabMesh),"Ïåðåíåñåíî ìåøêîâ: {ffffff}%d",JobAmmount[playerid]);
                
    SendClientMessage(playerid,COLOR_GREEN,RabMesh);
                
    DisablePlayerCheckpoint(playerid);
                
    ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,0,0,0,0,0,1);
                
    JobCP[playerid] = 1;
                
    Mater[nearveh-mater[0]][zLoad] += 500;
                
    usemats[playerid] = 1;
                
    GameTextForPlayer(playerid,"~b~+500",5000,1);
                
    format(RabMesh,sizeof(RabMesh),"%d/5000",Mater[nearveh-mater[0]][zLoad]);
                
    Update3DTextLabelText(JobText1[nearveh],COLOR_YELLOW,RabMesh);
                
    ClearAnimations(playerid,1);
                
    ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,0,0,0,0,0,1);
                if(
    IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
                
    SetPlayerCheckpoint(playerid,2230.3528,-2286.1353,14.3751,1.5);
                
    GruzCP[playerid] = 1;
            }
            if(
    Mater[nearveh-mater[0]][zLoad] > 4500)
            {
                
    SendClientMessage(playerid,COLOR_RED,"Ôóðãîí çàïîëíåí, ñàäèòåñü â íåãî!");
                
    GruzCP[playerid] = 0;
                
    startjob[newcar] = 0;
                
    usemats[playerid] = 0;
                
    DestroyPickup(avtopick[newcar]);
                
    Delete3DTextLabel(JobText1[newcar]);
                
    DisablePlayerCheckpoint(playerid);
                
    gruzmats[playerid] = 0;
                
    ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,0,0,0,0,1,0);
                if(
    IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
                return 
    true;
            }
        }
        return 
    true;

    - - - Добавлено - - -

    Чет в PHP помещаться не хочет.

  7. #5
    Аватар для Osetin
    •Администратор•

    Статус
    Оффлайн
    Регистрация
    26.03.2013
    Адрес
    Pro-Pawn.Ru
    Сообщений
    3,428
    Репутация:
    1079 ±
    Цитата Сообщение от A N D R E Y Посмотреть сообщение
    Чет в PHP помещаться не хочет.
    Из-за переменной pHP bb-код сбился. Немного поправил переменную, добавил после нее точку, после не забудьте убрать их. Или можете добавить код на pastebin.

  8. Пользователь сказал cпасибо:
    A N D R E Y (07.12.2015)
  9. #6
    Аватар для A N D R E Y
    Пользователь

    Статус
    Оффлайн
    Регистрация
    07.12.2013
    Сообщений
    149
    Репутация:
    14 ±
    Цитата Сообщение от Osetin Посмотреть сообщение
    Из-за переменной pHP bb-код сбился. Немного поправил переменную, добавил после нее точку, после не забудьте убрать их. Или можете добавить код на pastebin.
    Какую переменную поправили?

  10. #7
    Аватар для A N D R E Y
    Пользователь

    Статус
    Оффлайн
    Регистрация
    07.12.2013
    Сообщений
    149
    Репутация:
    14 ±
    Проблема еще актуальна.

  11. #8
    Аватар для A N D R E Y
    Пользователь

    Статус
    Оффлайн
    Регистрация
    07.12.2013
    Сообщений
    149
    Репутация:
    14 ±
    Вобщем прочитал темку недавно созданную Даниэлем. Перешел на темку с CrashDetect, настроил все, и теперь место ошибки указывается. Это все тот-же паблик.
    Короткий лог:
    PHP код:
    [17:40:30] [debug#0 00070d5c in public OnPlayerPickUpPickup (playerid=0, pickupid=412) at F:\Программы и активатор\Программы\Проекты и проги\Начало разработки\gamemodes\discovery.pwn:8156 
    Ищем в моде строку 8156 и все что к ней относится:
    PHP код:
    if(pickupid == avtopick[nearveh])
        {
            if(!
    IsPlayerAttachedObjectSlotUsed(playerid,1)) return SendClientMessage(playerid,COLOR_GRAD1,"У вас нет мешка!");
            if(!
    IsPlayerInAnyVehicle(playerid))
            {
                new 
    RabMesh[41];
                
    JobAmmount[playerid]++;
                
    format(RabMesh,sizeof(RabMesh),"Перенесено мешков: {ffffff}%d",JobAmmount[playerid]);
                
    SendClientMessage(playerid,COLOR_GREEN,RabMesh);
                
    DisablePlayerCheckpoint(playerid);
                
    ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,0,0,0,0,0,1);
                
    JobCP[playerid] = 1;
                
    Mater[nearveh-mater[0]][zLoad] += 500;
                
    usemats[playerid] = 1;
                
    GameTextForPlayer(playerid,"~b~+500",5000,1);
                
    format(RabMesh,sizeof(RabMesh),"%d/5000",Mater[nearveh-mater[0]][zLoad]);
                
    Update3DTextLabelText(JobText1[nearveh],COLOR_YELLOW,RabMesh);
                
    ClearAnimations(playerid,1);
                
    ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,0,0,0,0,0,1);
                if(
    IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
                
    SetPlayerCheckpoint(playerid,2230.3528,-2286.1353,14.3751,1.5);
                
    GruzCP[playerid] = 1;
            }
            if(
    Mater[nearveh-mater[0]][zLoad] > 4500)
            {
                
    SendClientMessage(playerid,COLOR_RED,"Фургон заполнен, садитесь в него!");
                
    GruzCP[playerid] = 0;
                
    startjob[newcar] = 0;
                
    usemats[playerid] = 0;
                
    DestroyPickup(avtopick[newcar]);
                
    Delete3DTextLabel(JobText1[newcar]);
                
    DisablePlayerCheckpoint(playerid);
                
    gruzmats[playerid] = 0;
                
    ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,0,0,0,0,1,0);
                if(
    IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
                return 
    true;
            }
        } 
    Я все-равно в тупике, просмотрел пикап который создается под переменной "avtopick", там ничего подозрительного нет.

  12. #9
    Аватар для Daniel_Cortez
    new fuck_logic[0] = EOS;

    Статус
    Оффлайн
    Регистрация
    06.04.2013
    Адрес
    Novokuznetsk, Russia
    Сообщений
    1,662
    Репутация:
    2145 ±
    Цитата Сообщение от A N D R E Y Посмотреть сообщение
    Я все-равно в тупике, просмотрел пикап который создается под переменной "avtopick", там ничего подозрительного нет.
    Есть. По какому индексу идёт доступ к avtopick? CrashDetect показывает "-1".
    Цитата Сообщение от A N D R E Y Посмотреть сообщение
    PHP код:
    if(pickupid == avtopick[nearveh]) 
    Если это и есть строка 8156, то происходит обращение к avtopick[-1], следовательно в nearveh записано значение "-1". Смотрите, из-за чего там может оказаться такое значение, и обрабатывайте этот случай отдельно.
    По названию переменной можно предположить, что там должен быть ID близостоящей машины, но функция, которая должна вернуть этот ID, не находит возле игрока никаких машин и возвращает -1.
    Индивидуально в PM и Skype по скриптингу не помогаю. Задавайте все свои вопросы здесь (click).
    SA-MP 0.4 is a lie

  13. Пользователь сказал cпасибо:
    A N D R E Y (07.12.2015)
  14. #10
    Аватар для A N D R E Y
    Пользователь

    Статус
    Оффлайн
    Регистрация
    07.12.2013
    Сообщений
    149
    Репутация:
    14 ±
    Цитата Сообщение от Daniel_Cortez Посмотреть сообщение
    Есть. По какому индексу идёт доступ к avtopick? CrashDetect показывает "-1".

    Если это и есть строка 8156, то происходит обращение к avtopick[-1], следовательно в nearveh записано значение "-1". Смотрите, из-за чего там может оказаться такое значение, и обрабатывайте этот случай отдельно.
    По названию переменной можно предположить, что там должен быть ID близостоящей машины, но функция, которая должна вернуть этот ID, не находит возле игрока никаких машин и возвращает -1.
    Да да, я забыл упомянуть что условие это и есть строка с ошибкой.

 

 
Страница 1 из 2 12 ПоследняяПоследняя

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Ваши права

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