Store plot and door friends names as array

Avoids setVariable value restrictions for players with special
characters in their name.

Also avoids issues with storing non-ASCII characters from player names
in DB inventory field.
This commit is contained in:
ebaydayz
2016-08-09 10:48:31 -04:00
parent d5ec0d9728
commit bc7c1879a3
8 changed files with 11 additions and 11 deletions

View File

@@ -534,7 +534,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 = [[_playerUID,(name player)]];
_friendsArr = [[_playerUID,toArray (name player)]];
_tmpbuilt setVariable ["doorfriends", _friendsArr, true];
PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_playerUID, _vector], _friendsArr];
};
@@ -555,7 +555,7 @@ if (_canBuild select 0) then {
if (DZE_permanentPlot) then {
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
if (_canBuild select 1) then {
_friendsArr = [[_playerUID,(name player)]];
_friendsArr = [[_playerUID,toArray (name player)]];
_tmpbuilt setVariable ["plotfriends", _friendsArr, true];
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID, _vector], _friendsArr];
} else {