mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 10:26:28 +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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user