martinco / YAINA

0 stars 0 forks source link

eu2: tfar init error #218

Open martinco opened 6 years ago

martinco commented 6 years ago

Originally reported by: Martin Collins



18:46:19 Error in expression <Namespace setVariable [_variableName, + _value];
missionNamespace setVariable [_>
18:46:19   Error position: <_value];
missionNamespace setVariable [_>
18:46:19   Error Undefined variable in expression: _value
18:46:19 File task_force_radio\functions\fn_setSwSettings.sqf [TFAR_fnc_setSwSettings], line 31
18:46:19 Error in expression <tion = (_this select 2);
[_destination, _localSettings, true] call TFAR_fnc_setS>
18:46:19   Error position: <_localSettings, true] call TFAR_fnc_setS>
18:46:19   Error Undefined variable in expression: _localsettings
18:46:19 File task_force_radio\functions\fn_requestRadios.sqf [TFAR_fnc_requestRadios], line 32
martinco commented 6 years ago

Original comment by Martin Collins:


            _variableName = format["%1_settings_local", _source];
            _localSettings = missionNamespace getVariable _variableName;            
            if !(isNil "_variableName") then {
                _destination = (_this select 2);
                [_destination, _localSettings, true] call TFAR_fnc_setSwSettings;
            };

variableName will never be nil, so lets just set X_settings_local instead