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
SkeepRyder

Парочка вопросов

Добрый день. Помогите решить 2 проблемы.

 

1. Как отключить логи в ZEV миссиях? Там просто оч много строк, вручную удалять слишком долго, может есть какой-нибудь конфиг?

 

2. 

15:23:25 Wrong text element 'null'
15:23:25 Wrong text element 'null'
15:23:25 Wrong text element 'null'
15:23:25 Wrong text element 'null'
15:23:25 Error in expression <hud_blood		= round(r_player_blood);
if((_SRhud_humanity >= 15000) && (_SRhud_hum>
15:23:25   Error position: <_SRhud_humanity >= 15000) && (_SRhud_hum>
15:23:25   Error Undefined variable in expression: _srhud_humanity
15:23:25 File mpmissions\DZESR.Chernarus\custom\gui\hud\playerHud.sqf, line 15

Файлик худа

disableSerialization;
while {true} do
    {
        1000 cutRsc ["SRhud","PLAIN"];
        _wpui               = uiNameSpace getVariable "SRhud";
        _vitals             = _wpui displayCtrl 4900;
	    _thePlayer          = player;
	    _SRhud_zombieKills 	= _thePlayer getVariable["zombieKills",0];
	    _SRhud_killsH 		= _thePlayer getVariable["humanKills",0];
	    _cashMoney 			= _thePlayer getVariable["cashMoney",0];
	    _SRhud_killsB 		= _thePlayer getVariable["banditKills",0];
	    _SRhud_humanity 	= _thePlayer getVariable["humanity",0];
		_SRhud_image 		= "";
	    _SRhud_blood		= round(r_player_blood);
if((_SRhud_humanity >= 15000) && (_SRhud_humanity <= 24999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H1.paa'/>"; };
if((_SRhud_humanity >= 25000) && (_SRhud_humanity <= 49999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H2.paa'/>"; };
if((_SRhud_humanity >= 50000) && (_SRhud_humanity <= 74999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H3.paa'/>"; };
if((_SRhud_humanity >= 75000) && (_SRhud_humanity <= 99999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H4.paa'/>"; };
if(_SRhud_humanity >= 100000) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H5.paa'/>"; };	

if((_SRhud_humanity <= 14999) && (_SRhud_humanity >= -14999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\S.paa'/>"; };
	
if((_SRhud_humanity <= -15000) && (_SRhud_humanity >= -24999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B1.paa'/>"; };
if((_SRhud_humanity <= -25000) && (_SRhud_humanity >= -49999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B2.paa'/>"; };
if((_SRhud_humanity <= -50000) && (_SRhud_humanity >= -74999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B3.paa'/>"; };
if((_SRhud_humanity <= -75000) && (_SRhud_humanity >= -99999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B4.paa'/>"; };
if(_SRhud_humanity <= -100000) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B5.paa'/>"; };
	
	_vitals ctrlSetStructuredText parseText format ["	
		<t size='1.5' align='right'> %1 </t><br/>
		<t size='0.8' align='right'> %2 </t>     <br/>
		<t size='0.8' align='right'> %3 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sz.paa'/>   <br/>
		<t size='0.8' align='right'> %4 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sb.paa'/>   <br/>
		<t size='0.8' align='right'> %5 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sh.paa'/>   <br/>
		<br/><br/><br/>	
		<t size='0.8' align='right'> %6 </t><img size='1.25' align='right' image='custom\gui\hud\icons\blood.paa'/>   <br/>
		<t size='0.8' align='right'> %7 </t><img size='1.2' align='right' image='custom\gui\hud\icons\dollars.paa'/>   <br/>
	",
	_SRhud_image,
	_SRhud_humanity,
	_SRhud_zombieKills,
	_SRhud_killsB,
	_SRhud_killsH,
	_SRhud_blood,
	[_cashMoney] call BIS_fnc_numberText
	];
	_vitals ctrlCommit 0;
        
    sleep 2;
};

Как можно решить эту проблему? Пробовал обьявлять, не получилось.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts




  • 0

Добрый день. Помогите решить 2 проблемы.

 

1. Как отключить логи в ZEV миссиях? Там просто оч много строк, вручную удалять слишком долго, может есть какой-нибудь конфиг?

 

2. 

15:23:25 Wrong text element 'null'
15:23:25 Wrong text element 'null'
15:23:25 Wrong text element 'null'
15:23:25 Wrong text element 'null'
15:23:25 Error in expression <hud_blood		= round(r_player_blood);
if((_SRhud_humanity >= 15000) && (_SRhud_hum>
15:23:25   Error position: <_SRhud_humanity >= 15000) && (_SRhud_hum>
15:23:25   Error Undefined variable in expression: _srhud_humanity
15:23:25 File mpmissions\DZESR.Chernarus\custom\gui\hud\playerHud.sqf, line 15

Файлик худа

disableSerialization;
while {true} do
    {
        1000 cutRsc ["SRhud","PLAIN"];
        _wpui               = uiNameSpace getVariable "SRhud";
        _vitals             = _wpui displayCtrl 4900;
	    _thePlayer          = player;
	    _SRhud_zombieKills 	= _thePlayer getVariable["zombieKills",0];
	    _SRhud_killsH 		= _thePlayer getVariable["humanKills",0];
	    _cashMoney 			= _thePlayer getVariable["cashMoney",0];
	    _SRhud_killsB 		= _thePlayer getVariable["banditKills",0];
	    _SRhud_humanity 	= _thePlayer getVariable["humanity",0];
		_SRhud_image 		= "";
	    _SRhud_blood		= round(r_player_blood);
if((_SRhud_humanity >= 15000) && (_SRhud_humanity <= 24999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H1.paa'/>"; };
if((_SRhud_humanity >= 25000) && (_SRhud_humanity <= 49999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H2.paa'/>"; };
if((_SRhud_humanity >= 50000) && (_SRhud_humanity <= 74999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H3.paa'/>"; };
if((_SRhud_humanity >= 75000) && (_SRhud_humanity <= 99999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H4.paa'/>"; };
if(_SRhud_humanity >= 100000) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\H5.paa'/>"; };	

if((_SRhud_humanity <= 14999) && (_SRhud_humanity >= -14999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\S.paa'/>"; };
	
if((_SRhud_humanity <= -15000) && (_SRhud_humanity >= -24999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B1.paa'/>"; };
if((_SRhud_humanity <= -25000) && (_SRhud_humanity >= -49999))then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B2.paa'/>"; };
if((_SRhud_humanity <= -50000) && (_SRhud_humanity >= -74999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B3.paa'/>"; };
if((_SRhud_humanity <= -75000) && (_SRhud_humanity >= -99999)) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B4.paa'/>"; };
if(_SRhud_humanity <= -100000) then { _SRhud_image = "<img size='2.3' image='custom\gui\hud\icons\B5.paa'/>"; };
	
	_vitals ctrlSetStructuredText parseText format ["	
		<t size='1.5' align='right'> %1 </t><br/>
		<t size='0.8' align='right'> %2 </t>     <br/>
		<t size='0.8' align='right'> %3 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sz.paa'/>   <br/>
		<t size='0.8' align='right'> %4 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sb.paa'/>   <br/>
		<t size='0.8' align='right'> %5 </t><img size='1.8' align='right' image='custom\gui\hud\icons\sh.paa'/>   <br/>
		<br/><br/><br/>	
		<t size='0.8' align='right'> %6 </t><img size='1.25' align='right' image='custom\gui\hud\icons\blood.paa'/>   <br/>
		<t size='0.8' align='right'> %7 </t><img size='1.2' align='right' image='custom\gui\hud\icons\dollars.paa'/>   <br/>
	",
	_SRhud_image,
	_SRhud_humanity,
	_SRhud_zombieKills,
	_SRhud_killsB,
	_SRhud_killsH,
	_SRhud_blood,
	[_cashMoney] call BIS_fnc_numberText
	];
	_vitals ctrlCommit 0;
        
    sleep 2;
};

Как можно решить эту проблему? Пробовал обьявлять, не получилось.

 

 

 

Не уверен что поможет, так как не вижу всего кода, но возможно со 2-ой проблемой справится поможет это. Попробуй над этой строчкой:

 

  1. while {true} do

 

добавить это:

 

  1. private ["_SRhud_humanity"];
  2. _SRhud_humanity = 0;

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 buka
      Всем здорова, значит сервер 1.9.0  почти чистый, приват базы и пару ботов на этих базах заспавненые в миссии, Играть скучновато, да и вообще на старых версиях всегда DZAI боты стояли... но на прошлой версии и на этой так и не могу победить, делаю по гайду, леплю строчку как написано, но инициализации нет, в логе тишина, ровно как и в игровом процессе, не знаю куда рыть уже, далее. Так втрое, переделывал скрипт авиа поддержки, всё работало ровно на тех же версиях что и DZAI, там для старых версий кто в курсе помнит нужно было еще дополнительно изменить строку в server_cleanup.sqf иначе техника взрывалась при спавне... (ботовская) ну и собственно в этой же строке я убирал дамаг на заспавниную технику миссией... сейчас я не могу найти где это в коде, техника взрывается после появления через 10 сек, очень жаль потому как скрипт выдался не плохой.И третье, очень много старых полезных скриптов просто недоступны, срок хранения их на серверах истёк и ссылки битые, у кого есть скрипт вырубания травы топором??? помню такой был мелкий...
    • By Boom
      Такие вопросы, подскажите поалуйста
      Как вернуть метку на труп в плагине DZGM
      Как понять по логам что игрок дюпает, немогу прочитать в RTP этого, вижу что открывает сейф вылетает и так повтор, как понять что игроки дюпают валюту путём передажи её друг другу одноверменно
      Как отключать траву через скрипт который добавляет контекстное меню (RBM)
    • By SteelSoul
      Уважаемы коллеги, подскажите пожалуйста, где в 1.58 теперь находятся настройки джаммера, прайса, списка спавна техники, вероятность спавна лута и т.п.?
    • By Yahweh
      1) Как во время рестарта за минуты 2, кикать всех игроков и закрывать сервер? ( примерно это представляю, но нужен совет)
      2) Лут то спавнится, то нет, с чем связано? ( кастомный лут есть )
      3) По зомби не проходит дамаг, как будто их нету, и патроны  сквозь них летят
    • By AJlex
      1.как обратиться к символу в строке по индексу?
      2.у игрока обнуляется человечность если не зайти после смерти перед рестартом,есть ли фикс,и если нет то какой файл смотреть?
  • 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.