Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
BigCrazyCat

Локация в дебаг мониторе

Редактировал дебаг монитор и решил вставить местонахождение игрока (населенный пункт),но код затерялся где-то. Напишите,кто имеет.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

_nearestCity = nearestLocations [getPos player, ['NameCityCapital', 'NameCity', 'NameVillage', 'NameLocal'], 750];

_textCity = ('Неизвестно');

if (count _nearestCity > 0) then

    {_textCity = text (_nearestCity select 0)};

 

Share this post


Link to post
Share on other sites



  • 0

 

_nearestCity = nearestLocations [getPos player, ['NameCityCapital', 'NameCity', 'NameVillage', 'NameLocal'], 750];
_textCity = ('Неизвестно');
if (count _nearestCity > 0) then
    {_textCity = text (_nearestCity select 0)};
 

Ошибку выдает в Инфи

Share this post


Link to post
Share on other sites
  • 0

какую?

 

это в дебаг монитор вставь в инфи, и => локация будет в переменной _textCity

Сохранить в UTF8 не забудь.

 

Ну и в сам дебаг сунь куда нить _textCity.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Ford
      Создание скрипта можно разделить на 2 этапа: написание кода и его тестирование. Второй у меня занимает около 80% всего времени, т.к. каждый раз нужно загружать сервер и миссию.
      Есть ли более быстрый способ отлаживать код?
    • By JolyMonk
      Здравствуйте, как можно создать свой, прозрачный, hint для дебаг монитора? 
    • By Alex39
      Дебаг монитор
      Идем в корень сервера в папку SE1\serverDZ.cfg  и открываем блокнотом, и вставляем код, ну к примеру после строки BattlEye = 1;
      loginQueueMaxPlayers = 10; storageAutoFix = 1; disablePublisherBanKick = 1; updateStrategyVersion = 1; showPlayerStatus = 1; И получаем

       
      Сам дебаг вкл/выкл  showPlayerStatus = 1;
    • By Temko
      Всем добрейший вечерочек.
       
      Хотел бы спросить, возможно ли такое реализовать в дебаге: если у тебя хуманити больше -5000, то хумка на дебаге отображалась бы красным цветом, а если хумка +5000, то она бы отображалась синим. Если возможно, опишите пожалуйста как это сделать.
    • By OXIDE
      http://itmages.ru/image/view/5219992/be3f0914
      http://itmages.ru/image/view/5219997/f33c7d57
      1. Есть у кого такой худ, как на скрине? 
      2. Вопрос к Ультиме. Взял с RN портала себе такой дебаг монитор. Не работает строчка "онлайн" и "до рестарта осталось". Как это реализовать? 
      Код дебаг монитора:
       
      if ((isServer) || (isDedicated)) exitWith {diag_log "custom_debug:: Script tried to launch serverside where it should not be!";}; waitUntil {!isNil "dayz_animalCheck"}; [2] spawn // Specify the default state. 0=OFF 1=SMALL 2=LARGE { private ["_displayActive","_fps","_lastFpsUpdate","_logo"]; displayState = (_this select 0); _displayActive = if (displayState == 0) then { false } else { true }; _fps = round(diag_fps); _lastFpsUpdate = diag_tickTime; _logo = "custom_debug\logo_red.paa"; /*DIK*/ (findDisplay 46) displayAddEventHandler ['keyDown','if ((_this select 1) == 0xCF) then { if (displayState > 0) then { displayState = displayState - 1; } else { displayState = 2;}; };']; /*DIK*/ while {true} do { if ((diag_tickTime - _lastFpsUpdate) > 0.9) then { _fps = round(diag_fps); _lastFpsUpdate = diag_tickTime; }; sleep 0.1; switch (displayState) do { case 0: { // Display off. if (_displayActive) then {_displayActive = false; hintSilent "";}; }; case 1: { // Display small. _displayActive = true; hintSilent parseText format [" <img size='1.4' align='left' image='%1'/><br/> <t size='1' color='#EE8888' font='Zeppelin33' align='left'>Кровь: %2</t><br/> <t size='1' color='#6EF191' font='Zeppelin33' align='left'>ФПС: %3</t> ", _logo, (player getVariable ['USEC_BloodQty',r_player_blood]), _fps ]; }; case 2: { // Display large. _displayActive = true; hintSilent parseText format [" <img size='3.2' align='center' image='%1'/><br/> <br/> <t size='1' color='#6ECCF1' font='Bitstream' align='left'>Выживание: %11 Дней</t><br/> <t size='1' color='#EE8888' font='Bitstream' align='left'>Убито бандитов: %2</t><br/> <t size='1' color='#EE8888' font='Bitstream' align='left'>Убито зомби: %3</t><br/> <t size='1' color='#EE8888' font='Bitstream' align='left'>Убито героев: %4</t><br/> <t size='1' color='#EE8888' font='Bitstream' align='left'>Выстрел в голову: %12</t><br/> <t size='1' color='#00CC00' font='Bitstream' align='center'>Онлайн: %14</t><br/> <t size='1' color='#6EF191' font='Bitstream' align='left'>Репутация: %5</t><br/> <t size='1' color='#EE8888' font='Bitstream' align='left'>Кровь: %6</t><br/> <t size='1' color='#6ECCF1' font='Zeppelin33' align='left'>ФПС: %7</t><br/> <t size='1' color='#6EF191' font='Bitstream' align='left'>Осталось до рестарта: %13 Минут</t><br/> <t size='0.9' color='#EE8888' font='Zeppelin33' align='left'>[END] Свернуть</t> ", _logo, (player getVariable ['banditKills',0]), (player getVariable ['zombieKills',0]), (player getVariable ['humanKills',0]), (player getVariable ['humanity',0]), (player getVariable ['USEC_BloodQTY',r_player_blood]), _fps, (dayz_Survived), (player getVariable['headShots',0]), (240-(round(serverTime/60))), (count playableUnits) ]; }; }; }; };
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.