From 9b4d2651e22cf8033d15e593471efa061cbcdcec Mon Sep 17 00:00:00 2001 From: Namindu Date: Wed, 18 Jun 2014 10:18:13 -0700 Subject: [PATCH] "(_callerID != 0)" was listed twice, in "If" Their were two "(_callerID != 0)" so i change the second one to "(_targetID != 0)". Hopefully that should fix it. --- SQF/dayz_code/actions/player_tagFriendly.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/player_tagFriendly.sqf b/SQF/dayz_code/actions/player_tagFriendly.sqf index 80aad571e..d2411caa3 100644 --- a/SQF/dayz_code/actions/player_tagFriendly.sqf +++ b/SQF/dayz_code/actions/player_tagFriendly.sqf @@ -7,7 +7,7 @@ r_action = false; _callerID = _caller getVariable ["CharacterID", "0"]; _targetID = _target getVariable ["CharacterID", "0"]; -if ((_callerID != 0) && (_callerID != 0)) then { +if ((_callerID != 0) && (_targetID != 0)) then { _friendlies = _caller getVariable ["friendlies", []]; _friendlies set [count _friendlies, _targetID]; _caller setVariable ["friendlies", _friendlies, true]; @@ -20,4 +20,4 @@ if ((_callerID != 0) && (_callerID != 0)) then { PVDZE_send = [_target,"tagFriendly",[_target]]; //To Target publicVariableServer "PVDZE_send"; }; -}; \ No newline at end of file +};