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

@@ -131,7 +131,7 @@ if ((count _upgrade) > 0) then {
if (_ownerID == "0") then { _ownerID = _playerUID; }; //APFL is on but UID is 0 so we will claim it to record the ownership.
_object setVariable ["ownerPUID",_ownerID,true];
if (_lockable == 3) then {
_friendsArr = [[_playerUID,(name player)]];
_friendsArr = [[_playerUID,toArray (name player)]];
_object setVariable ["doorfriends", _friendsArr, true];
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_ownerID,_vector],_classname,_obj,player,_friendsArr];
} else {