mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fixed Error in expression
"DEBUG WEAPONS: [0,B 1-1-H:1
(Fank),"",["ItemGoldBar","ItemGPS",1,1,"sell","GPS","Gold",6701]]"
Error in expression <(_configName in (weapons player)));
if(_isToolBelt
or _isBinocs) then {
_msg = >
Error position: <_isToolBelt or _isBinocs) then {
_msg = >
Error Undefined variable in expression: _istoolbelt
File z\addons\dayz_code\actions\trade_weapons.sqf, line 32
This commit is contained in:
@@ -26,6 +26,10 @@ if(_buy_o_sell == "sell") then {
|
|||||||
_msg = "Need the weapon in your hands before you can sell it.";
|
_msg = "Need the weapon in your hands before you can sell it.";
|
||||||
_config = (configFile >> "CfgWeapons" >> _part_in);
|
_config = (configFile >> "CfgWeapons" >> _part_in);
|
||||||
_configName = configName(_config);
|
_configName = configName(_config);
|
||||||
|
_wepType = getNumber(_config >> "Type");
|
||||||
|
|
||||||
|
_isToolBelt = (_wepType == 131072);
|
||||||
|
_isBinocs = (_wepType == 4096);
|
||||||
|
|
||||||
_abort = (!(_configName in (weapons player)));
|
_abort = (!(_configName in (weapons player)));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user