Tidyness changes

This changes a few functions that were being used to use the already
defined variables instead

Fixed a few string issues with Advanced trading and plot managment.
This commit is contained in:
oiad
2016-07-24 16:20:39 +12:00
parent b03afef460
commit 2ca7bf59c7
4 changed files with 24 additions and 24 deletions

View File

@@ -532,7 +532,7 @@ if (_canBuild select 0) then {
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_playerUID, _vector], []];
if (_lockable == 3) then {
_friendsArr = [[([player] call FNC_GetPlayerUID),(name player)]];
_friendsArr = [[_playerUID,(name player)]];
_tmpbuilt setVariable ["doorfriends", _friendsArr, true];
PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_playerUID, _vector], _friendsArr];
};
@@ -553,7 +553,7 @@ if (_canBuild select 0) then {
if (DZE_permanentPlot) then {
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
if (_canBuild select 1) then {
_friendsArr = [[([player] call FNC_GetPlayerUID),(name player)]];
_friendsArr = [[_playerUID,(name player)]];
_tmpbuilt setVariable ["plotfriends", _friendsArr, true];
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID, _vector], _friendsArr];
} else {