Question

При запуске выдаёт это:

Спойлер


SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[16:14:00] filterscripts = ""  (string)
[16:14:00] 
[16:14:00] Server Plugins
[16:14:00] --------------
[16:14:00]  Loading plugin: crashdetect
[16:14:00]   CrashDetect plugin 4.19.4
[16:14:00]   Loaded.
[16:14:00]  Loading plugin: pawncmd
[16:14:00] Pawn.CMD plugin v3.2.0 by urShadow has been loaded
[16:14:00]   Loaded.
[16:14:00]  Loading plugin: pawnraknet
[16:14:00] [Pawn.RakNet] plugin v1.5.1 loading...
[16:14:00] [Pawn.RakNet] 

    | Pawn.RakNet 1.5.1 | 2016 - 2021
    |--------------------------------
    | Author and maintainer: katursis


    | Compiled: Sep 26 2021 at 12:04:10
    |--------------------------------------------------------------
    | Repository: https://github.com/katursis/Pawn.RakNet
    |--------------------------------------------------------------
    | Wiki: https://github.com/katursis/Pawn.RakNet/wiki

[16:14:00]   Loaded.
[16:14:00]  Loading plugin: sscanf
[16:14:00] 

[16:14:00]  ===============================

[16:14:00]       sscanf plugin loaded.     

[16:14:00]          Version:  2.8.3        

[16:14:00]   (c) 2018 Alex "Y_Less" Cole  

[16:14:00]  ===============================

[16:14:00]   Loaded.
[16:14:00]  Loading plugin: streamer
[16:14:00] 

*** Streamer Plugin v2.9.4 by Incognito loaded ***

[16:14:00]   Loaded.
[16:14:00]  Loading plugin: mysql
[16:14:00]  >> plugin.mysql: R39-6 successfully loaded.
[16:14:00]   Loaded.
[16:14:00]  Loading plugin: profiler
[16:14:00]   Profiler plugin 2.15.1
[16:14:00]   Loaded.
[16:14:00]  Loading plugin: timerfix
[16:14:00]   >> TimerFix v1.5 successfully loaded.
[16:14:00]   Loaded.
[16:14:00]  Loaded 8 plugins.

[16:14:00] 
[16:14:00] Ban list
[16:14:00] --------
[16:14:00]  Loaded: samp.ban
[16:14:00] 
[16:14:00] 
[16:14:00] Filterscripts
[16:14:00] ---------------
[16:14:00]   Loaded 0 filterscripts.

[16:14:00]  
[16:14:00] --------------------------------------
[16:14:00]  Античит Nex-AC загружен!
[16:14:00]  Версия античита: 1.9.53
[16:14:00]  Автор: Nexius
[16:14:00] --------------------------------------

[16:14:00] [TextDraw]: Все текстдравы созданы
[16:14:00] [debug] Run time error 4: "Array index out of bounds"
[16:14:00] [debug]  Attempted to read/write array element at index 65535 in array of size 9000
[16:14:00] [debug] AMX backtrace:
[16:14:00] [debug] #0 00ad1590 in CreateVehicles () at C:\Users\olegr\OneDrive\Рабочий стол\mod\gamemodes\smouk.pwn:33464
[16:14:00] [debug] #1 009ce43c in public PawnRakNet_OnGameModeInit () at C:\Users\olegr\OneDrive\Рабочий стол\mod\gamemodes\smouk.pwn:9034
[16:14:00] [debug] #2 0005bf48 in public n_veh_OnGameModeInit () at C:\Users\olegr\OneDrive\Рабочий стол\mod\pawno\include\Pawn.RakNet.inc:1153
[16:14:00] [debug] #3 0005b4c8 in public n_OnGameModeInit () at C:\Users\olegr\OneDrive\Рабочий стол\mod\pawno\include\system/vehicle.pwn:15026
[16:14:00] [debug] #4 0005a978 in public ac_OnGameModeInit () at C:\Users\olegr\OneDrive\Рабочий стол\mod\pawno\include\system/pickup.pwn:133
[16:14:00] [debug] #5 00015bdc in public PawnCmd_OnGameModeInit () at C:\Users\olegr\OneDrive\Рабочий стол\mod\pawno\include\nex-ac.inc:3408
[16:14:00] [debug] #6 00008410 in public SSCANF_OnGameModeInit () at C:\Users\olegr\OneDrive\Рабочий стол\mod\pawno\include\pawncmd.inc:125
[16:14:00] [debug] #7 00001760 in public fc_OnGameModeInit () at C:\Users\olegr\OneDrive\Рабочий стол\mod\pawno\include\sscanf2.inc:211
[16:14:00] [debug] #8 0000116c in public OnGameModeInit () at C:\Users\olegr\OneDrive\Рабочий стол\mod\pawno\include\foreach.inc:581
[16:14:00] ------------------------
[16:14:00]          Smouk         
[16:14:00]         vk.com/smoukrussia   
[16:14:00] ------------------------
[16:14:00] Number of vehicle models: 32

Лог бд

Спойлер

[16:14:00 01/24/22] [ERROR] mysql_query - invalid connection handle (id: 0)
[16:14:00 01/24/22] [WARNING] cache_get_row_count - no active cache

Бд подключл правильно,но не понимаю в чём проблема

Edited by Azix

Share this post


Link to post
Share on other sites

17 answers to this question

  • 2

@Azix 

 

SetVehicleData(arendaveh[0], V_RENT, 59);
SetVehicleData(arendaveh[0], V_RENTP, 100000);
SetVehicleData(arendaveh[0], V_OWRENT, 0);

 

Замени на:

 

if(IsValidVehicle(arendaveh[0]))
{
    SetVehicleData(arendaveh[0], V_RENT, 59);
    SetVehicleData(arendaveh[0], V_RENTP, 100000);
    SetVehicleData(arendaveh[0], V_OWRENT, 0);
}

 

Share this post


Link to post
Share on other sites
  • 0

@Azix Выход за пределы массива. 

Edited by LoX_1337

Share this post


Link to post
Share on other sites
  • 0

@Azix  Ошибка возможно из-за использования числа 65535. Данное число изображает собой неизвестность ( INVALID_PLAYER_ID, INVALID_VEHICLE_ID и так далее).

Скорее всего ошибка могла возникнуть из-за использовании данного числа, а точнее INVALID... данных в функциях.

 В логе указы строки где используется подобное, посмотрите мод:

...\mod\gamemodes\smouk.pwn:9034

 

Share this post


Link to post
Share on other sites
  • 0

@Sleash`en  строка 9034     CreateMedBeds();

 

Share this post


Link to post
Share on other sites
  • 0

@Azix Скинь ближайший код по 5 строк выше и ниже, и если CreateMedBeds - stock или public в моде, то и его тоже

P. S. не забудь занести под "код"

Share this post


Link to post
Share on other sites
  • 0

@Sleash`en строки рядом

Спойлер

    g_last_lottery_time =
    g_last_pay_day_time =
    g_last_m_timer_time = gettime();

    LoadPomoi();
    LoadLoad();
    CreateTextDraws();
    CreateVehicles();
    CreateMedBeds();
    CreateCasinoTables();
    CreateArmories();

    CreateGreenZones();

    HelpInfoInit();
    ServerRadioInit();
    AnimListInit();
//    BusRoutesInit();
    BanksInit();
    TempJobsInit();
    MapIconsInit();
    InfoPickupsInit();
    TeleportPickupsInit();
    DrivingSchoolInit();

сток

Спойлер

stock CreateMedBeds()
{
    for(new i; i < sizeof g_med_bed_pos; i ++)
    {
        g_med_bed_label = CreateDynamic3DTextLabel(" ", 0xFFFFFFEE, g_med_bed_pos[0], g_med_bed_pos[1], g_med_bed_pos[2], 5.0, _, _, _, -1, -1, _, 30.0);
        UpdateMedBed(i);
    }
}

 

Share this post


Link to post
Share on other sites
  • 0

попробуйте в стоке вот это:

 g_med_bed_label = CreateDynamic3DTextLabel(" "0xFFFFFFEE, g_med_bed_pos[0], g_med_bed_pos[1], g_med_bed_pos[2], 5.0, _, _, _, -1, -1, _, 30.0);

заменить на это:

 g_med_bed_label = CreateDynamic3DTextLabel(" "0xFFFFFFEE, g_med_bed_pos[0], g_med_bed_pos[1], g_med_bed_pos[2], 5.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -130.0);

 

Share this post


Link to post
Share on other sites
  • 0

@Sleash`en заменил ошибки те же

Share this post


Link to post
Share on other sites
  • 0

@Sleash`en 

stock UpdateMedBed(bedid) // îáíîâèòü êîéêó
{
    new fmt_text[85];

    format(fmt_text, sizeof fmt_text, "Êîéêà ¹%d\n{00CC00}Ñâîáîäíà\n\n{AAAAAA}Íàæìèòå ëåâûé ALT\n÷òîáû çàíÿòü åå", bedid + 1);
    UpdateDynamic3DTextLabelText(g_med_bed_label[bedid], 0xFFFFFFEE, fmt_text);

    return 1;
}

 

Заметка от DEST , создано

3.2. Код больше 10 строк необходимо брать в теги "Код" и "Спойлер". Как это сделать рассказано в разделе "FAQ".

Устное предупреждение.

Share this post


Link to post
Share on other sites
  • 0

@Azix Покажите CreateVehicles.

Share this post


Link to post
Share on other sites
  • 0

@LoX_1337 

Спойлер

stock CreateVehicles()
{
    new spawn_time = 60 * 5// 5 минут

    //дрифт
    //
    drift_car[0] =  CreateVehicle(535,-1393.3749,340.1689,1.6315,43.0688,1,1, spawn_time, 0);
    drift_car[1] = CreateVehicle(535,-1390.1665,342.7442,1.6312,41.9957,1,1, spawn_time, 0);
    drift_car[2] = CreateVehicle(535,-1387.2906,345.2340,1.6312,42.2702,1,1, spawn_time, 0);
    drift_car[3] = CreateVehicle(535,-1384.3193,347.9330,1.6312,44.3758,1,1, spawn_time, 0);
    drift_car[4] = CreateVehicle(535,-1381.8324,350.5846,1.6311,44.5790,1,1, spawn_time, 0);
    drift_car[5] = CreateVehicle(535,-1378.9641,353.3135,1.6310,47.9793,1,1, spawn_time, 0);
    drift_car[6] = CreateVehicle(535,-1375.7039,356.4578,1.6312,45.84041,1, spawn_time, 0);
    drift_car[7] = CreateVehicle(535,-1372.7054,359.5946,1.6312,49.2757,1,1, spawn_time, 0);
    drift_car[8] = CreateVehicle(535,-1369.5209,362.7546,1.6310,47.6843,1,1, spawn_time, 0);
    drift_car[9] = CreateVehicle(535,-1366.2949,366.1647,1.6313,47.4358,1,1, spawn_time, 0);
}

 

 

Спойлер

stock UpdateMedBed(bedid) // îáíîâèòü êîéêó
{
    new fmt_text[85];

    format(fmt_text, sizeof fmt_text, "Êîéêà ¹%d\n{00CC00}Ñâîáîäíà\n\n{AAAAAA}Íàæìèòå ëåâûé ALT\n÷òîáû çàíÿòü åå", bedid + 1);
    UpdateDynamic3DTextLabelText(g_med_bed_label[bedid], 0xFFFFFFEE, fmt_text);

    return 1;
}

UpdateMedBed

Edited by Cawfee

Share this post


Link to post
Share on other sites
  • 0

@LoX_1337 

Спойлер

SetVehicleData(arendaveh[0], V_RENT, 59);
    SetVehicleData(arendaveh[0], V_RENTP, 100000);
    SetVehicleData(arendaveh[0], V_OWRENT, 0);

 

Sleash`Sleash`en`enSleash`en

Спойлер

stock UpdateMedBed(bedid) // обновить койку
{
    new fmt_text[85];

    format(fmt_text, sizeof fmt_text, "Койка №%d\n{00CC00}Свободна\n\n{AAAAAA}Нажмите левый ALT\nчтобы занять ее", bedid + 1);
    UpdateDynamic3DTextLabelText(g_med_bed_label[bedid], 0xFFFFFFEE, fmt_text);

    return 1;
}

@Sleash`en

Edited by Azix

Share this post


Link to post
Share on other sites
  • 0

@Azix Можете скинуть сток/паблик, где находятся эти 3 строки ?

Share this post


Link to post
Share on other sites
  • 0

@LoX_1337 вот где они

Спойлер

stock CreateVehicles()
{
    new spawn_time = 60 * 5; // 5 минут

    //дрифт
    //
    drift_car[0] =  CreateVehicle(535,-1393.3749,340.1689,1.6315,43.0688,1,1, spawn_time, 0);
    drift_car[1] = CreateVehicle(535,-1390.1665,342.7442,1.6312,41.9957,1,1, spawn_time, 0);
    drift_car[2] = CreateVehicle(535,-1387.2906,345.2340,1.6312,42.2702,1,1, spawn_time, 0);
    drift_car[3] = CreateVehicle(535,-1384.3193,347.9330,1.6312,44.3758,1,1, spawn_time, 0);
    drift_car[4] = CreateVehicle(535,-1381.8324,350.5846,1.6311,44.5790,1,1, spawn_time, 0);
    drift_car[5] = CreateVehicle(535,-1378.9641,353.3135,1.6310,47.9793,1,1, spawn_time, 0);
    drift_car[6] = CreateVehicle(535,-1375.7039,356.4578,1.6312,45.84041,1, spawn_time, 0);
    drift_car[7] = CreateVehicle(535,-1372.7054,359.5946,1.6312,49.2757,1,1, spawn_time, 0);
    drift_car[8] = CreateVehicle(535,-1369.5209,362.7546,1.6310,47.6843,1,1, spawn_time, 0);
    drift_car[9] = CreateVehicle(535,-1366.2949,366.1647,1.6313,47.4358,1,1, spawn_time, 0);
    
    /*SetVehicleTined(drift_car[0],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[0], 0);
    
    SetVehicleTined(drift_car[1],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[1], 2);
    
    SetVehicleTined(drift_car[2],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[2], 0);
    
    SetVehicleTined(drift_car[3],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[3], 2);
    
    SetVehicleTined(drift_car[4],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[4], 0);
    
    SetVehicleTined(drift_car[5],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[5], 2);
    
    SetVehicleTined(drift_car[6],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[6], 0);
    
    SetVehicleTined(drift_car[7],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[7], 2);

    SetVehicleTined(drift_car[8],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[8], 0);

    SetVehicleTined(drift_car[9],
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255,
    1, 0, 0, 0, 255);
    ChangeVehiclePaintjob(drift_car[9], 2);*/

    
    //

    
    // --------------- Правительство
    CreateVehicle(579,-2470.3694,1589.7699,53.3046,290.3034,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(579,-2477.4165,1587.1912,53.3047,290.3934,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(400,-2484.7327,1584.4786,53.3812,289.8051,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(400,-2492.4756,1581.6317,53.3797,290.0185,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(505,-2487.9028,1569.0457,53.0858,289.9691,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(505,-2477.2556,1572.7456,53.0873,289.4791,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(490,-2467.0056,1576.2799,53.1943,289.7910,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(490,-2455.9834,1580.1138,53.1942,289.5033,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(15166,-2445.0457,1583.8820,52.8366,288.8468,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(15166,-2435.8362,1587.0585,52.8366,288.6221,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    CreateVehicle(487,-2427.3103,1599.0020,53.3566,109.0946,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_GOV_CAR); // панамера
    
    for(new idxs; idxs < sizeof g_ferm_car; idxs ++)
    {
        CreateVehicle(478,g_ferm_car[idxs][FER_POS_X],g_ferm_car[idxs][FER_POS_Y],g_ferm_car[idxs][FER_POS_Z],g_ferm_car[idxs][FER_POS_A],28,1, spawn_time, 0, VEHICLE_ACTION_TYPE_FERMA_CAR);
        vodila[idxs] = -1;
    }

    // --------------- Тачки вокзал азрамас
    AddStaticVehicleEx(15188,800.0815,539.6805,15.4964,358.7129,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,796.0823,538.4926,15.3161,358.7821,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,792.2369,538.6824,15.1498,359.8766,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,788.7452,538.6000,14.9720,0.4214,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,781.9131,538.8870,14.6114,359.3527,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,778.5186,538.6932,14.4144,0.2153,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,774.9440,538.4335,14.1984,0.1498,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,771.0560,538.4620,13.9643,358.3589,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,767.1018,538.6110,13.7268,359.6543,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,762.9596,538.3601,13.4736,359.1052,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,759.0941,539.6364,13.2470,358.3671,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15188,785.3849,538.8508,14.8066,359.1392,4,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(207,-2396.5425,1774.5288,112.5106,181.7660,1,1, spawn_time, 0); //
    AddStaticVehicleEx(207,-2418.2715,1631.5065,104.5610,142.5206,1,1, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15166,-2373.9993,1742.7919,52.6642,29.6332,0,0, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15076,-2369.8306,1735.3636,53.1618,28.9406,0,0, spawn_time, 0); // Бмв Х6
    AddStaticVehicleEx(15166,-2365.8416,1727.8977,52.6625,28.3759,0,0, spawn_time, 0); // Бмв
    AddStaticVehicleEx(15186,-2541.6318,1836.5449,52.8051,326.4428,0,0, spawn_time, 0); // Бмв Х6

    // --------------- Автобусы
    AddStaticVehicleEx(431,752.385,697.651,12.167,248.9359,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_BUS_DRIVER); // Маршрутка 1
    AddStaticVehicleEx(431,754.080,702.046,12.167,247.9554,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_BUS_DRIVER); // Маршрутка 2
    AddStaticVehicleEx(431,755.880,706.440,12.174,247.5120,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_BUS_DRIVER); // Маршрутка 3
    AddStaticVehicleEx(431,757.632,710.656,12.189,247.3848,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_BUS_DRIVER); // Маршрутка 4
    AddStaticVehicleEx(418,759.666,715.350,11.938,247.4195,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_BUS_DRIVER); // Маршрутка 5
    AddStaticVehicleEx(418,761.189,719.046,11.968,247.4420,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_BUS_DRIVER); // Маршрутка 6
    AddStaticVehicleEx(418,762.708,722.983,12.014,247.4420,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_BUS_DRIVER); // Маршрутка 7
    //-----------------Инкассаторы
    CreateVehicle(407,1830.4039,2526.8489,15.8487,124.4878,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_FIRE_CAR);
    CreateVehicle(407,1832.9255,2521.9861,15.8489,124.4878,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_FIRE_CAR);
    //==============================================================================
    CreateVehicle(420,-727.0438,941.0878,11.8670,359.6479,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(438,-733.5024,940.9460,11.9932,1.6170,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(420,-738.6214,940.5186,11.8676,359.6027,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(438,-744.6390,940.4180,11.9977,1.3923,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(438,837.8394,650.4630,15.7235,221.5873,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(420,834.9374,647.8789,15.5913,221.4567,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(438,831.8992,645.1924,15.7237,220.0638,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(420,828.5351,642.3461,15.5930,218.7861,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(420,-2463.0664,2851.5962,37.3412,89.2700,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(438,-2448.1985,2851.5500,37.4715,91.2053,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(420,-2460.9868,2825.5234,37.3419,90.3418,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    CreateVehicle(438,-2447.3132,2825.6052,37.3414,90.3419,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_TAXI_DRIVER);
    // --------------- Армия
    CreateVehicle(433,495.3294,2843.8464,7.5701,2.9655,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(433,489.0961,2842.8333,7.5655,1.3531,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(433,483.6270,2841.9758,7.5747,3.0850,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(433,476.7592,2840.9910,7.5657,1.2250,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(578,451.8553,2842.1970,7.5675,359.499,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(578,446.6103,2841.0149,7.5640,1.0197,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(433,471.4866,2842.1313,7.5649,2.2909,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(433,440.2967,2840.5374,7.5630,1.3122,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(551,311.6888,2819.1396,7.5946,359.3636,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(551,308.1850,2819.1965,7.5931,359.4627,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(470,434.6584,2840.3210,7.5640,1.3651,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(470,318.8001,2819.3623,7.5952,0.5150,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    CreateVehicle(470,315.3150,2819.1169,7.5919,0.3621,99,99, spawn_time, 0, VEHICLE_ACTION_TYPE_ARMY_CAR);
    // --------------- Механики
    CreateVehicle(525,-452.2429,588.3226,11.0007,270.2764,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 1 арз 1-5
    CreateVehicle(525,-452.1860,593.4230,11.0039,270.2389,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 2
    CreateVehicle(525,-452.4872,598.3011,11.0040,270.6611,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 3
    CreateVehicle(525,-452.4214,603.5180,11.0046,270.3586,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 4
    CreateVehicle(525,-452.4477,608.1171,11.0190,276.2542,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 5 арз 1-5
    CreateVehicle(525,-2519.7793,1126.4312,7.9630,160.0192,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 6
    CreateVehicle(525,-2516.0859,1125.2791,7.9539,159.4330,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 7
    CreateVehicle(525,-2512.1772,1123.7664,7.9616,159.6063,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 8
    CreateVehicle(525,-2507.9917,1121.9963,7.9596,155.7055,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 9
    CreateVehicle(525,-2504.1951,1120.6451,7.9629,157.1107,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 10
    CreateVehicle(525,-2523.3193,1127.8635,7.9624,161.3405,1,6, spawn_time, 0, VEHICLE_ACTION_TYPE_MECHANIC); // Механики 11
    // --------------- Больница
    CreateVehicle(416, 434.2172,1722.1104,11.8401,75.0257,1,3, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Карета 1
    CreateVehicle(416, 432.7232,1717.9496,11.8402,74.6033,1,3, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Карета 2
    CreateVehicle(416, 431.7292,1713.6519,11.8401,73.6032,1,3, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Карета 3
    CreateVehicle(416, 430.6960,1709.2373,11.8419,75.7904,1,3, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Карета 4
    CreateVehicle(416, 429.1296,1705.4556,11.8425,74.9353,1,3, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Карета 5
    CreateVehicle(416, 428.3296,1701.1339,11.8439,76.6674,1,3, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Карета 6
    CreateVehicle(487, 416.7857,1736.3452,21.3920,74.9525,1,3, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Карета 7
    CreateVehicle(466, 436.4980,1730.7366,11.7124,74.2003,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Волга 1
    CreateVehicle(466, 434.9053,1726.4570,11.7128,75.0543,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Волга 2
    CreateVehicle(487, 408.9429,1704.5665,21.4297,72.0857,1,3, spawn_time, 0, VEHICLE_ACTION_TYPE_MED_CAR); // Вертолет
    // --------------- Радио ТРК ритм
    CreateVehicle(488,-2705.6899,2761.5171,37.7932,50.0,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR); // ORP, репортеры, вертолет
    CreateVehicle(582,-2698.3494,2710.3298,37.2274,50.2159,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR); // ORP, репортеры, фургон 1
    CreateVehicle(582,-2695.5610,2713.6748,37.2280,49.8447,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR); // ORP, репортеры, фургон 2
    CreateVehicle(582,-2692.9331,2716.6587,37.2291,49.3312,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR); // ORP, репортеры, фургон 3
    CreateVehicle(582,-2690.2358,2719.8857,37.2259,50.8637,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR); // ORP, репортеры, фургон 5
    CreateVehicle(551,-2687.2122,2722.6384,37.2973,49.6484,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR); // ORP, репортеры, Марк 2
    CreateVehicle(551,-2684.8364,2725.3521,37.2973,50.1215,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR);
    CreateVehicle(551,-2682.5610,2727.9666,37.2973,49.0242,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR);
    CreateVehicle(551,-2679.8833,2730.7644,37.1097,50.9312,7,1, spawn_time, 0, VEHICLE_ACTION_TYPE_RADIO_CAR);
    // --------------- ДПС
    CreateVehicle(15186,1781.4640,-2264.8313,10.5547,270.0163,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // Шкода 1
    CreateVehicle(15186,1781.4596,-2268.7236,10.5547,270.3054,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // Шкода 2
    CreateVehicle(15186,1781.4418,-2272.7693,10.5547,270.9883,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // Шкода 3
    CreateVehicle(596,1763.7177,-2226.5569,10.7155,180.0455,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // жигуль 4
    CreateVehicle(596,1767.7755,-2226.5818,10.7152,180.8842,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // жигуль 5
    CreateVehicle(15143,1781.5975,-2261.0354,10.4532,270.0429,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // мерс дпс
    CreateVehicle(598,1804.1135,-2226.7896,10.4713,179.3379,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); //бмв дпс 2
    CreateVehicle(598,1800.0463,-2226.5439,10.4707,180.0928,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); //бмв дпс 3
    CreateVehicle(15143,1796.0995,-2226.6731,10.4578,180.2773,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // мерс дпс 2
    CreateVehicle(15143,1791.9785,-2226.6333,10.4578,180.5500,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // мерс дпс 3
    CreateVehicle(15143,1788.0060,-2226.7114,10.7908,180.4520,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // веста дпс
    CreateVehicle(15143,1783.7490,-2226.8035,10.8001,178.9523,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // веста дпс 2
    CreateVehicle(596,1779.7498,-2226.6606,10.7154,179.5067,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // жигуль 6
    CreateVehicle(596,1775.8317,-2226.5698,10.7155,180.5267,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // жигуль 7
    CreateVehicle(596,1771.7018,-2226.5139,10.7150,179.7211,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); //жигуль 8
    CreateVehicle(598,1781.5813,-2252.9185,10.4627,270.2164,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // бмв дпс 4
    CreateVehicle(598,1781.8140,-2256.9153,10.4617,270.2824,1,79, spawn_time, 0, VEHICLE_ACTION_TYPE_DPS_CAR); // бмв дпс 5
    // --------------- МЧС (Пожарные) 93
    CreateVehicle(544,-2582.2847,2133.2339,53.4884,269.8240,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Пожарная машина без воды
    CreateVehicle(544,-2582.0579,2136.8264,53.4691,270.5705,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Пожарная машина без воды
    CreateVehicle(407,-2581.5862,2140.6792,53.5991,269.0209,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Пожарная машина во дворе с водой
    CreateVehicle(544,-2583.0210,2144.3728,53.3966,267.9211,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Патриот МЧС
    CreateVehicle(407,-2581.4197,2148.1777,53.5981,270.3683,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Патриот МЧС №2
    CreateVehicle(402,-2582.7998,2151.6729,53.2486,270.9728,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // TAYOTA для 8-10 рангов
    CreateVehicle(405,-2582.7627,2155.4756,53.2491,271.7617,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // TAYOTA для 8-10 рангов №2
    CreateVehicle(407,-2592.7124,2161.1602,53.5874,91.8633,1,1,  spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Машины в гараже #1
    CreateVehicle(407,-2592.7275,2149.3743,53.5872,89.6076,1,1,  spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Авто в гараже #2
    CreateVehicle(407,-2592.2344,2144.0000,53.5848,90.6399,1,1,  spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Авто в гараже #3
    CreateVehicle(407,-2592.5754,2131.7471,53.5897,90.9089,1,1,  spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Авто в гараже #4 41
    CreateVehicle(407,-2592.7576,2137.1868,53.5874,88.9280,1,1,  spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Авто в гараже #5
    CreateVehicle(563,-2560.8018,2158.8347,54.0898,89.9832,1,3,  spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Вертолёт #1
    CreateVehicle(563,-2561.1514,2131.1489,54.1018,86.8745,1,3,  spawn_time, 0, VEHICLE_ACTION_TYPE_MCHS_CAR); // Вертолёт #2
    // --------------- ППС
    CreateVehicle(598,166.3754,1384.1549,11.6288,257.9703,0,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(528,167.2589,1387.8993,11.9909,258.3884,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(598,167.6617,1391.6226,11.6286,259.1289,0,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(482,170.2281,1394.7888,12.0800,258.5131,0,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(482,170.9533,1398.4562,12.0730,259.2719,0,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(528,170.3388,1402.3401,12.0614,257.4996,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(528,171.1549,1405.8087,12.0560,257.4980,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(528,171.9969,1409.4236,11.9989,257.4955,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(528,172.7919,1413.2052,11.9882,257.4993,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(528,173.6382,1416.6925,12.0017,257.5071,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(528,174.4421,1420.3931,11.9866,257.6848,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    CreateVehicle(405,175.0343,1424.0237,11.9036,257.3146,1,1, spawn_time, 0, VEHICLE_ACTION_TYPE_PPS_CAR); //
    // --------------- ОПГ Центральное"
    CreateVehicle(796, -223.6436,-1073.4432,41.2267,235.5663,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);// ?????
    CreateVehicle(796, -221.6211,-1070.7927,41.2274,238.3434,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);// ????? 2
    CreateVehicle(796,-219.5863,-1067.6552,41.2284,237.1620,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);// ????? 3
    CreateVehicle(459,-217.2582,-1063.9126,40.6293,238.9574,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);//????
    CreateVehicle(459,-215.4127,-1060.5150,40.6405,238.2990,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);//???? 2
    CreateVehicle(459,-214.0396,-1057.4523,40.6406,240.0175,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);//???? 3
    CreateVehicle(585,-201.4632,-1056.0046,40.8043,149.1365,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);//?????
    CreateVehicle(585,-198.1627,-1057.9841,40.8038,149.3278,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);//????? 2
    CreateVehicle(585,-195.0323,-1059.7374,40.8100,150.9055,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR); // ????? 3
    CreateVehicle(15188,-201.4303,-1091.0649,40.7854,26.5815,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);// ??? 2115
    CreateVehicle(15188,-185.7491,-1065.0148,40.7856,60.8164,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);//??? 2115 2
    CreateVehicle(15188,-187.5594,-1068.3981,40.7874,60.2327,128,128, spawn_time, 0, VEHICLE_ACTION_TYPE_ARZ_CAR);//??? 2115 3
    // --------------- ОПГ Западное"
    CreateVehicle(796,-2348.6848,161.0554,21.5746,258.2853,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ????? 2
    CreateVehicle(796,-2347.8062,164.7261,21.5754,258.2986,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ????? 3
    CreateVehicle(796,-2347.0002,168.3379,21.5757,258.9432,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ????? 4
    CreateVehicle(585,-2346.2285,171.7591,21.1096,258.9959,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ?????
    CreateVehicle(585,-2345.3406,175.1346,21.1118,259.3694,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ????? 2
    CreateVehicle(585,-2344.5969,178.6359,21.1112,259.7422,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ????? 3
    CreateVehicle(459,-2344.0383,182.4227,20.9533,258.9554,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ????
    CreateVehicle(459,-2343.4026,185.8390,20.9539,259.3742,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ???? 2
    CreateVehicle(459,-2342.6768,189.0848,20.9547,259.3851,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ???? 3
    CreateVehicle(15188,-2332.0657,191.8439,21.0866,169.0992,125,125, spawn_time, 0, VEHICLE_ACTION_TYPE_BAT_CAR); // ??? 2115
    // ---------------- ОПГ Северное"---------------------
    CreateVehicle(585,-2626.6746,2901.7158,37.4148,90.1641,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ?????
    CreateVehicle(585,-2626.7771,2898.0720,37.4137,91.1495,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ????? 2
    CreateVehicle(585,-2626.6907,2894.6069,37.4148,92.0194,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ????? 3
    CreateVehicle(796,-2626.4319,2890.9285,37.8382,90.1163,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ?????
    CreateVehicle(796,-2626.3855,2887.4932,37.8379,90.3927,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ????? 2
    CreateVehicle(796,-2626.4424,2884.0454,37.8383,90.4051,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ????? 3
    CreateVehicle(459,-2609.3481,2900.4736,37.2509,179.2685,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ????
    CreateVehicle(459,-2604.8989,2900.4224,37.2508,181.4422,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ???? 2
    CreateVehicle(15188,-2636.6917,2880.5181,37.3879,359.9123,6,6, spawn_time, 0, VEHICLE_ACTION_TYPE_LYT_CAR); // ??? 2115
    //----------------- Ферма Машины ---------------------
    CreateVehicle(532,1601.8358,720.5178,16.0992,269.8676,28,1, spawn_time, 0, VEHICLE_ACTION_TYPE_FERMA_CAR);
    CreateVehicle(532,1603.3085,738.2664,16.0992,270.4706,28,1, spawn_time, 0, VEHICLE_ACTION_TYPE_FERMA_CAR);
    //=========================================================аренда===============
     arendaveh[0] = CreateVehicle(15085, 2144.0156,-1812.1764,18.4875,359.9574, 6, 6, -1, 0);

    SetVehicleData(arendaveh[0], V_RENT, 59);
    SetVehicleData(arendaveh[0], V_RENTP, 100000);
    SetVehicleData(arendaveh[0], V_OWRENT, 0);

     arendaveh[1] = CreateVehicle(15116, 2147.4895,-1812.3109,18.5471,0.6105, 6, 6, -1, 0);

    SetVehicleData(arendaveh[1], V_RENT, 59);
    SetVehicleData(arendaveh[1], V_RENTP, 100000);
    SetVehicleData(arendaveh[1], V_OWRENT, 0);

    arendaveh[2] = CreateVehicle(15173, 2151.0271,-1811.9778,18.6786,359.7066, 6, 6, -1, 0);

    SetVehicleData(arendaveh[2], V_RENT, 59);
    SetVehicleData(arendaveh[2], V_RENTP, 100000);
    SetVehicleData(arendaveh[2], V_OWRENT, 0);

    arendaveh[3] = CreateVehicle(15164, 2154.5510,-1812.0975,18.9538,1.2257, 6, 6, -1, 0);

    SetVehicleData(arendaveh[3], V_RENT, 59);
    SetVehicleData(arendaveh[3], V_RENTP, 100000);
    SetVehicleData(arendaveh[3], V_OWRENT, 0);

    arendaveh[4] = CreateVehicle(15167, 2158.0481,-1812.1659,18.7436,359.4655, 6, 6, -1, 0);

    SetVehicleData(arendaveh[4], V_RENT, 59);
    SetVehicleData(arendaveh[4], V_RENTP, 100000);
    SetVehicleData(arendaveh[4], V_OWRENT, 0);

    arendaveh[5] = CreateVehicle(15159, 2161.6943,-1812.8040,18.9367,0.0177, 6, 6, -1, 0);

    SetVehicleData(arendaveh[5], V_RENT, 59);
    SetVehicleData(arendaveh[5], V_RENTP, 100000);
    SetVehicleData(arendaveh[5], V_OWRENT, 0);

    arendaveh[6] = CreateVehicle(15175, 2165.0598,-1812.4137,18.7696,359.3905, 6, 6, -1, 0);

    SetVehicleData(arendaveh[6], V_RENT, 59);
    SetVehicleData(arendaveh[6], V_RENTP, 100000);
    SetVehicleData(arendaveh[6], V_OWRENT, 0);

    arendaveh[7] = CreateVehicle(15164, 2140.6797,-1811.9991,18.5939,0.0427, 6, 6, -1, 0);

    SetVehicleData(arendaveh[7], V_RENT, 59);
    SetVehicleData(arendaveh[7], V_RENTP, 100000);
    SetVehicleData(arendaveh[7], V_OWRENT, 0);

    //=====================вторая аренда==========================================

     arendaveh[8] = CreateVehicle(999, 422.1423,1809.2489,12.3920,271.5281, 3, 1, -1, 0);

    SetVehicleData(arendaveh[8], V_RENT, 58);
    SetVehicleData(arendaveh[8], V_RENTP, 100000);
    SetVehicleData(arendaveh[8], V_OWRENT, 0);

    arendaveh[9] = CreateVehicle(15085, 421.8577,1804.0323,12.3921,270.5798, 3, 1, -1, 0);

    SetVehicleData(arendaveh[9], V_RENT, 58);
    SetVehicleData(arendaveh[9], V_RENTP, 100000);
    SetVehicleData(arendaveh[9], V_OWRENT, 0);

    arendaveh[10] = CreateVehicle(15116, 422.1949,1798.4261,12.3920,272.0365, 3, 1, -1, 0);

    SetVehicleData(arendaveh[10], V_RENT, 58);
    SetVehicleData(arendaveh[10], V_RENTP, 100000);
    SetVehicleData(arendaveh[10], V_OWRENT, 0);

    arendaveh[11] = CreateVehicle(15167, 423.0486,1793.5099,12.3921,269.7274, 3, 1, -1, 0);

    SetVehicleData(arendaveh[11], V_RENT, 58);
    SetVehicleData(arendaveh[11], V_RENTP, 100000);
    SetVehicleData(arendaveh[11], V_OWRENT, 0);

    arendaveh[12] = CreateVehicle(15175, 435.2710,1809.9153,12.3920,89.3308, 3, 1, -1, 0);

    SetVehicleData(arendaveh[12], V_RENT, 58);
    SetVehicleData(arendaveh[12], V_RENTP, 100000);
    SetVehicleData(arendaveh[12], V_OWRENT, 0);

    arendaveh[13] = CreateVehicle(15159, 435.2743,1804.3234,12.3920,91.7322, 3, 1, -1, 0);

    SetVehicleData(arendaveh[13], V_RENT, 58);
    SetVehicleData(arendaveh[13], V_RENTP, 100000);
    SetVehicleData(arendaveh[13], V_OWRENT, 0);

    arendaveh[14] = CreateVehicle(15173, 435.2034,1798.9636,12.3920,92.3003, 3, 1, -1, 0);

    SetVehicleData(arendaveh[14], V_RENT, 58);
    SetVehicleData(arendaveh[14], V_RENTP, 100000);
    SetVehicleData(arendaveh[14], V_OWRENT, 0);

    arendaveh[15] = CreateVehicle(415, 435.3548,1794.0073,12.3921,89.6630, 3, 1, -1, 0);

    SetVehicleData(arendaveh[15], V_RENT, 58);
    SetVehicleData(arendaveh[15], V_RENTP, 100000);
    SetVehicleData(arendaveh[15], V_OWRENT, 0);

    //==================третья аренда==================================================

    arendaveh[16] = CreateVehicle(522, 1730.7089,2481.0007,15.0299,214.2615, 0, 1, -1, 0);

    SetVehicleData(arendaveh[16], V_RENT, 60);
    SetVehicleData(arendaveh[16], V_RENTP, 350000);
    SetVehicleData(arendaveh[16], V_OWRENT, 0);

    arendaveh[17] = CreateVehicle(612, 1733.2258,2482.3630,15.4657,215.3279, 0, 1, -1, 0);

    SetVehicleData(arendaveh[17], V_RENT, 60);
    SetVehicleData(arendaveh[17], V_RENTP, 350000);
    SetVehicleData(arendaveh[17], V_OWRENT, 0);

    arendaveh[18] = CreateVehicle(907, 1735.7397,2483.8484,15.2401,214.8532, 0, 1, -1, 0);

    SetVehicleData(arendaveh[18], V_RENT, 60);
    SetVehicleData(arendaveh[18], V_RENTP, 350000);
    SetVehicleData(arendaveh[18], V_OWRENT, 0);

    arendaveh[19] = CreateVehicle(15180, 1738.0343,2485.7544,15.2200,215.0737, 0, 1, -1, 0);

    SetVehicleData(arendaveh[19], V_RENT, 60);
    SetVehicleData(arendaveh[19], V_RENTP, 350000);
    SetVehicleData(arendaveh[19], V_OWRENT, 0);

    arendaveh[20] = CreateVehicle(579, 1740.3864,2487.6086,15.6744,214.4059, 0, 1, -1, 0);

    SetVehicleData(arendaveh[20], V_RENT, 60);
    SetVehicleData(arendaveh[20], V_RENTP, 350000);
    SetVehicleData(arendaveh[20], V_OWRENT, 0);

    arendaveh[21] = CreateVehicle(795, 1742.9143,2489.0720,15.9752,214.9236, 0, 1, -1, 0);

    SetVehicleData(arendaveh[21], V_RENT, 60);
    SetVehicleData(arendaveh[21], V_RENTP, 350000);
    SetVehicleData(arendaveh[21], V_OWRENT, 0);

    arendaveh[22] = CreateVehicle(15126, 1745.0552,2490.8586,15.2088,215.5316, 0, 1, -1, 0);

    SetVehicleData(arendaveh[22], V_RENT, 60);
    SetVehicleData(arendaveh[22], V_RENTP, 350000);
    SetVehicleData(arendaveh[22], V_OWRENT, 0);

    print("[Vehicle]: Все транспортные средства созданы");
}
 

 

Edited by Azix

Share this post


Link to post
Share on other sites
  • 0

@LoX_1337 Огромное вам спасибо,и все остальным.Помогло

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Chopick
      By Chopick
      Всем здравствуйте! Делаю систему домов/бизнесов по туториалу knox know с плагином GoodArea. Есть проблема, если заходишь в интерьер бизнеса, то когда выходишь спавнит почему-то на пикап дома.

      Вот енумы:
       
      #define MAX_HOUSES 1000 #define MAX_BIZS 1000 enum house {         hID,         STREAMER_TAG_PICKUP:hPICKUP,         STREAMER_TAG_AREA:hAREA,         hOWNER[MAX_PLAYER_NAME],         STREAMER_TAG_3D_TEXT_LABEL:hTEXT[256],         STREAMER_TAG_MAP_ICON:hICON,         hPRICE,         hCLASS,         hINTERIOR,         Float:hX,         Float:hY,         Float:hZ,         Float:hA,         hCONDITION // Закрыт/Открыт } new House[MAX_HOUSES][house]; new Houses; new HouseGroup; enum biz {         bID,         STREAMER_TAG_PICKUP:bPICKUP,         STREAMER_TAG_AREA:bAREA,         bOWNER[MAX_PLAYER_NAME],         STREAMER_TAG_3D_TEXT_LABEL:bTEXT[256],         STREAMER_TAG_MAP_ICON:bICON,         bNAME[25],         bPRICE,         bTYPE,         bINTERIOR,         Float:bX,         Float:bY,         Float:bZ,         Float:bA } new Biz[MAX_BIZS][biz]; new Bizs; new BizGroup; enum interior_info {         intID,         intNAME[41],         intINTERIOR,         Float:intX,         Float:intY,         Float:intZ,         Float:intA,         STREAMER_TAG_AREA:intAREA } new Interior[MAX_INTERIORS][interior_info]; new Interiors; new InteriorGroup; Вот что у меня в OnGameModeInit:
      HouseGroup = CreateGroupGoodAreas(GoodArea:HouseEnter); InteriorGroup = CreateGroupGoodAreas(GoodArea:InteriorExit); BizGroup = CreateGroupGoodAreas(GoodArea:BizArea);  
      Вот стоки:
      GAResponse:HouseEnter(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 if(key & KEY_WALK)                 {                 if(House[index][hCONDITION] > 0 && House[index][hOWNER] == player_info[playerid][NAME] || House[index][hCONDITION] == 0)                 {                                         GoToInterior(playerid, House[index][hINTERIOR]);                                         SetPlayerVirtualWorld(playerid, index);                                 }                                 else if(House[index][hCONDITION] > 0 && House[index][hOWNER] != player_info[playerid][NAME]) return SCM(playerid, COLOR_RED, "[Ошибка]{ffffff}Этот дом закрыт на ключ!");                         }                 }                 case GA_RESPONSE_ENTER:                 {                     if(House[index][hOWNER] == 0)                     {                         CreateNoOwnerHouseTD(playerid);                         for(new i = 0; i < sizeof NoOwnerTextDraw_PTD[]; i++)                         {                             PlayerTextDrawShow(playerid, NoOwnerTextDraw_PTD[playerid][i]);                                 }                                 new price[8];                                 format(price, sizeof(price), "%d$", House[index][hPRICE]);                                 PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][2], price);                                 new id[9];                                 format(id, sizeof(id), "%d", House[index][hID]);                                 PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][0], id);                                 switch(House[index][hCLASS])                                 {                                     case 1: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "A");                                     case 2: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "B");                                     case 3: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "C");                                 }                                 for(new i = 0; i < sizeof NoOwnerTextDraw_TD; i++)                         {                             TextDrawShowForPlayer(playerid, NoOwnerTextDraw_TD[i]);                                 }                         }                 }                 case GA_RESPONSE_LEAVE:                 {                 for(new i = 0; i < sizeof NoOwnerTextDraw_PTD[]; i++)                 {                     PlayerTextDrawHide(playerid, NoOwnerTextDraw_PTD[playerid][i]);                         }                         for(new i = 0; i < sizeof NoOwnerTextDraw_TD; i++)                 {                     TextDrawHideForPlayer(playerid, NoOwnerTextDraw_TD[i]);                         }                 }         }         return 1; } GAResponse:BizArea(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 if(key & KEY_WALK)                 {                     GoToInteriorBiz(playerid, Biz[index][bINTERIOR]);                                 SetPlayerVirtualWorld(playerid, index);                 }                 }         }         return 1; } GAResponse:InteriorExit(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 new world = GetPlayerVirtualWorld(playerid);                 if(key & KEY_WALK)                 {                     if(world < MAX_HOUSES)                     {                         SetPlayerInterior(playerid, 0);                             SetPlayerVirtualWorld(playerid, 0);                             SetPlayerPos(playerid, House[world][hX], House[world][hY], House[world][hZ]);                             SetPlayerFacingAngle(playerid, House[world][hA]);                                 }                                 else if(world < MAX_HOUSES + MAX_BIZS)                     {                         world -= MAX_HOUSES;                                         printf("%d index world", world);                         SetPlayerInterior(playerid, 0);                             SetPlayerVirtualWorld(playerid, 0);                             SetPlayerPos(playerid, Biz[world][bX], Biz[world][bY], Biz[world][bZ]);                             SetPlayerFacingAngle(playerid, Biz[world][bA]);                                 }                         }                         if(key & KEY_CTRL_BACK)                         {                             if(player_info[playerid][HOUSE] != House[world][hID]) return SCM(playerid, COLOR_RED, "[Ошибка]{ffffff}Вы не владелец данного дома!");                             new dialog[256];                                 format(dialog, sizeof(dialog),                                         "{ffd900}[1]{ffffff}Информация о доме\n\                                         {ffd900}[2]{ffffff}%s дом",                                 (House[world][hCONDITION] == 1) ? ("{00ff00}Открыть") : ("{ff0000}Закрыть"));                             SPD(playerid, DLG_HMENU, DIALOG_STYLE_LIST, "{ffd900}Меню дома", dialog, "Выбрать", "Закрыть");                             return 1;                         }                 }         }         return 1; } stock GoToInterior(playerid, interior) {     for(new i = 0; i < Interiors; i++)         {             if(Interior[i][intID] != interior) continue;             SetPlayerInterior(playerid, Interior[i][intINTERIOR]);             SetPlayerPos(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ]);             SetPlayerFacingAngle(playerid, Interior[i][intA]);             SetPlayerCheckpoint(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 1.0);             new str[128];             format(str, sizeof(str),                         "Нажмите \"ALT\" для выхода\n\                         Нажмите \"H\", чтобы открыть меню дома");             Create3DTextLabel(str, -1, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 15.0, 0, 1);             return 1;         }         return 0; } stock GoToInteriorBiz(playerid, interior) {     for(new i = 0; i < Interiors; i++)         {             if(Interior[i][intID] != interior) continue;             SetPlayerInterior(playerid, Interior[i][intINTERIOR]);             SetPlayerPos(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ]);             SetPlayerFacingAngle(playerid, Interior[i][intA]);             SetPlayerCheckpoint(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 1.0);             new str[128];             format(str, sizeof(str),                         "Нажмите \"ALT\" для выхода");             Create3DTextLabel(str, -1, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 15.0, 0, 1);             return 1;         }         return 0; }  
       
      Что мне делать, подскажите пожалуйста?