diff --git a/cScripts/functions/players/fn_setActiveRadio.sqf b/cScripts/functions/players/fn_setActiveRadio.sqf index 2dfd8e1a9..38f903736 100644 --- a/cScripts/functions/players/fn_setActiveRadio.sqf +++ b/cScripts/functions/players/fn_setActiveRadio.sqf @@ -68,4 +68,4 @@ if (EGVAR(patches,usesTFAR)) exitWith { }, [_radio], 1] call CBA_fnc_waitAndExecute; }; -SHOW_CHAT_ERROR("RadioSetActive", "Fatal"); \ No newline at end of file +SHOW_CHAT_ERROR("RadioSetActive", "Fatal"); diff --git a/cScripts/functions/players/fn_setRadioChannel.sqf b/cScripts/functions/players/fn_setRadioChannel.sqf index 8f246c8e4..49b5161e9 100644 --- a/cScripts/functions/players/fn_setRadioChannel.sqf +++ b/cScripts/functions/players/fn_setRadioChannel.sqf @@ -24,7 +24,7 @@ if (!GVAR(isPlayer)) exitWith {}; // ACRE if (EGVAR(patches,usesACRE)) exitWith { - _player setVariable [QEGVAR(Player,RadioChannel), []]; + SETVAR(_player, QEGVAR(Player,RadioChannel), []); private _playerRadios = [_player] call acre_api_fnc_getCurrentRadioList; { if !(_x == "") then { @@ -37,7 +37,8 @@ if (EGVAR(patches,usesACRE)) exitWith { // Store radio channels in variable. private _radioAndChannel = _player getVariable [QEGVAR(Player,RadioChannel), []]; _radioAndChannel pushBack [[_x] call acre_api_fnc_getBaseRadio, _channel]; - _player setVariable [QEGVAR(Player,RadioChannel), _radioAndChannel]; + SETVAR(_player, QEGVAR(Player,RadioChannel), _radioAndChannel); + } else { SHOW_SERVER_WARNING_1("Radio", "Empty radio is trying to get it's channel applied for %1", _player); }; @@ -50,4 +51,4 @@ if (EGVAR(patches,usesTFAR)) exitWith { /** TODO: Code goes here */ }; -SHOW_CHAT_ERROR("Radio", "Fatal"); \ No newline at end of file +SHOW_CHAT_ERROR("Radio", "Fatal");