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:
Florian Kinder
2014-02-13 22:58:18 +01:00
parent 1c2e81b9dd
commit 8e99b7a75b

View File

@@ -26,6 +26,10 @@ if(_buy_o_sell == "sell") then {
_msg = "Need the weapon in your hands before you can sell it.";
_config = (configFile >> "CfgWeapons" >> _part_in);
_configName = configName(_config);
_wepType = getNumber(_config >> "Type");
_isToolBelt = (_wepType == 131072);
_isBinocs = (_wepType == 4096);
_abort = (!(_configName in (weapons player)));