Error in expression <isMan and !_isAlive and !_isZombie and !_clothesTaken and !_isAnimal) then { if > Error position: <_clothesTaken and !_isAnimal) then { if > Error Undefined variable in expression: _clothestaken File mpmissions\__CUR_MP.Chernarus\Scripts\fn_selfActions.sqf, line 896 Error in expression <ZE_Housebase" or _typeOfCursorTarget in DZE_ExtraMaintain) and (damage _cursorTa> Error position: <DZE_ExtraMaintain) and (damage _cursorTa> Error Undefined variable in expression: dze_extramaintain File mpmissions\__CUR_MP.Chernarus\Scripts\fn_selfActions.sqf, line 823как их пофиксить?
Вот код из 823 строки
// inplace maintenance tool if((_cursorTarget isKindOf "ModularItems" or _cursorTarget isKindOf "DZE_Housebase" or _typeOfCursorTarget in DZE_ExtraMaintain) and (damage _cursorTarget >= 0.1)) then { if ((s_player_lastTarget select 2) != _cursorTarget) then { if (s_player_maint_build > 0) then { player removeAction s_player_maint_build; s_player_maint_build = -1; }; }; if (s_player_maint_build < 0) then { s_player_lastTarget set [2,_cursorTarget]; s_player_maint_build = player addAction [format["Поддержать %1",_text], "\z\addons\dayz_code\actions\player_buildingMaint.sqf",_cursorTarget, -2, false, true, "",""]; }; } else { player removeAction s_player_maint_build; s_player_maint_build = -1; };
а вот код из 896 строки
_clothesTaken = cursorTarget getVariable["clothesTaken",false]; // Take clothes by Zabn if (_isMan and !_isAlive and !_isZombie and !_clothesTaken and !_isAnimal) then { if (s_player_clothes < 0) then { s_player_clothes = player addAction [("<t color='#0096ff'>")+("Взять одежду")+("</t>"), "Scripts\player_takeClothes.sqf",cursorTarget, -10, false, true, "",""]; }; } else { player removeAction s_player_clothes; s_player_clothes = -1; };