mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-03-01 03:01:52 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user