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

Подскажите в рпт ошибка как исправить что не правильно:

 

22:31:40   Error Undefined variable in expression: dzmsmajdone
22:31:40 File z\addons\dayz_server\EMS\Scripts\DZMSMajTimer.sqf, line 36
22:31:40 Error in expression <or Mission %1.",_varName];
 
сам:DZMSMajTimer.sqf
/*
	DayZ Mission System Timer by Vampire
	Based on fnc_hTime by TAW_Tonic and SMFinder by Craig
	This function is launched by the Init and runs continuously.
*/
private["_run","_timeDiff","_timeVar","_wait","_cntMis","_ranMis","_varName"];

//Let's get our time Min and Max
_timeDiff = DZMSMajorMax - DZMSMajorMin;
_timeVar = _timeDiff + DZMSMajorMin;

diag_log format ["[DZMS]: Major Mission Clock Starting!"];

//Lets get the loop going
_run = true;
while {_run} do
{
	//Lets wait the random time
	_wait  = round(random _timeVar);
	sleep _wait;
	
	//Let's check that there are missions in the array.
	//If there are none, lets end the timer.
	_cntMis = count DZMSMajorArray;
	if (_cntMis == 0) then { _run = false; };
	
	//Lets pick a mission
	_ranMis = floor (random _cntMis);
	_varName = DZMSMajorArray select _ranMis;
	
	//Let's Run the Mission
	[] execVM format ["\z\addons\dayz_server\EMS\Missions\Major\%1.sqf",_varName];
	diag_log format ["[DZMS]: Running Major Mission %1.",_varName];
	
	//Let's wait for it to finish or timeout
	waitUntil {DZMSMajDone};
	DZMSMajDone = nil;
};

 

Edited by Дмитрий8087 (see edit history)

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts




  • 0

Постоянно повторяющиеся сообщения в логах... С чем могут быть они связаны, подскажите?

_timeleft = _combattimeout-time;
_kills =         player g>
18:05:15   Error position: <_combattimeout-time;
_kills =         player g>
18:05:15   Error Undefined variable in expression: _combattimeout
18:05:15 File mpmissions\DayZ_Overpoch_1.Chernarus\custom_monitor\custom_monitor.sqf, line 9
18:05:17 Wrong text element 'null'
18:05:17 Wrong text element 'null'
18:05:17 Wrong text element 'null'
18:05:17 Error in expression < (_nearestCity select 0)};
 
_timeleft = _combattimeout-time;
_kills =         player g>
18:05:17   Error position: <_combattimeout-time;
_kills =         player g>
18:05:17   Error Undefined variable in expression: _combattimeout
18:05:17 File mpmissions\DayZ_Overpoch_1.Chernarus\custom_monitor\custom_monitor.sqf, line 9
Edited by psp (see edit history)

Share this post


Link to post
Share on other sites
  • 0

18:05:15 File mpmissions\DayZ_Overpoch_1.Chernarus\custom_monitor\custom_monitor.sqf, line 9

 

 
Там же указано. Открывайте файл, ищите ошибку

Share this post


Link to post
Share on other sites
  • 0

 

18:05:15 File mpmissions\DayZ_Overpoch_1.Chernarus\custom_monitor\custom_monitor.sqf, line 9

 

 
Там же указано. Открывайте файл, ищите ошибку

Ищу, пока тщетно.

Share this post


Link to post
Share on other sites
  • 0

Зачем вам на дебаге вообще показывать сколько секунд до окочания "В режиме боя"?

Вообще уберите обращение или же наоборот подключайте обращение т.к. переменная не определена.

Share this post


Link to post
Share on other sites
  • 0

Зачем вам на дебаге вообще показывать сколько секунд до окочания "В режиме боя"?

 

Вообще уберите обращение или же наоборот подключайте обращение т.к. переменная не определена.

Спасибо за подсказку! Убрал. Остались еще ошибки, буду корректировать)

Share this post


Link to post
Share on other sites
  • 0

Привет всем. Установил на сервер скрипт на эвакуационный вертолет. Все работает, но в логах rpt повторяющаяся бесконечно ошибка:
 

_id = [] execF>
 3:15:41   Error position: <dayz_preloadFinished};
};
_id = [] execF>
 3:15:41   Error Undefined variable in expression: dayz_preloadfinished
 3:15:41 File mpmissions\DayZ_Overpoch_1.Chernarus\dayz_code\system\player_monitor.sqf, line 2
 3:15:41 Error in expression <tor.sqf"
if (isServer) then {
waitUntil{dayz_preloadFinished};

если честно как новичек в этом деле,не могу понять каким образом она возникла и тем более как ее устранить. Подскажите опытные люди, пожалуйста)

Share this post


Link to post
Share on other sites
  • 0

Привет всем. Установил на сервер скрипт на эвакуационный вертолет. Все работает, но в логах rpt повторяющаяся бесконечно ошибка:

 

_id = [] execF>
 3:15:41   Error position: <dayz_preloadFinished};
};
_id = [] execF>
 3:15:41   Error Undefined variable in expression: dayz_preloadfinished
 3:15:41 File mpmissions\DayZ_Overpoch_1.Chernarus\dayz_code\system\player_monitor.sqf, line 2
 3:15:41 Error in expression <tor.sqf"
if (isServer) then {
waitUntil{dayz_preloadFinished};

если честно как новичек в этом деле,не могу понять каким образом она возникла и тем более как ее устранить. Подскажите опытные люди, пожалуйста)

разобрался.. в init.sqf ненужную скобку поставил:D

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 Jdinovich
      Добрый день. Игрок стал жаловаться,что у него на сервере со временем стал падать фпс. Тоесть при заходе после рестарта у не 120фпс,но к рестарту у него всего лишь 50. Присутствуют иногда фризы(зависает игра на секунду или две потом отвисает) серверный фпс скажем так постоянно 50.
      Хостинг:
      Процессор:
      4 ядра Core i7 7700
      Оперативная память:
      8 Гб
      Жесткий диск:
      100 Гб
      Есть ошибки в рпт,ссылка на рпт ниже. Кто может не указать,а подсказать как именно устранить эти ошибки. Рассматриваются платные варианты.Писать сюда в лс или в вк
      https://vk.com/feed
       
      https://pastebin.com/CjinyPeW
    • By Jdinovich
      кто может помочь исправить ошибки в рпт? Иногда сервер просто вырубается типо краш. грешу на ошибки.Если что,то какова цена помощи
       
      https://pastebin.com/index.php?e=1
    • By Golf777
      File mpmissions\__CUR_MP.Chernarus\custom\=BTC=_Logistic\=BTC=_Lift\=BTC=_LiftInit.sqf, line 138
      Error in expression <
      };
      sleep 0.1;
      };
      _chopper removeAction BTC_liftHudId;
      if (BTC_lift == 0) then {>
        Error position: <BTC_liftHudId;
      if (BTC_lift == 0) then {>
        Error Undefined variable in expression: btc_lifthudid
    • By virus160381
      Помогите с миссиями, у меня ошибки постоянно валятся в РПТ.
       
    • By Golf777
      22:00:50 Error in expression <KindOf "LandVehicle") then {
      if ((count DZAI_heliListFinal) == 0) then {
      _nul = >
      22:00:50   Error position: <DZAI_heliListFinal) == 0) then {
      _nul = >
      22:00:50   Error Undefined variable in expression: dzai_helilistfinal
      22:00:50 File z\addons\dayz_server\DZAI\spawn_functions\respawnHandler2.sqf, line 80
  • 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.