mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-25 09:30:49 +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:
@@ -1,7 +1,7 @@
|
||||
private ["_friends"];
|
||||
private "_friends";
|
||||
|
||||
lbClear 7102;
|
||||
_friends = TheDoor getVariable ["doorfriends",[]];
|
||||
{
|
||||
lbAdd [7102, (_x select 1)];
|
||||
lbAdd [7102, toString (_x select 1)];
|
||||
} forEach _friends;
|
||||
|
||||
@@ -8,7 +8,7 @@ Humans = [];
|
||||
if (isPlayer _x) then {
|
||||
_friendUID = [_x] call FNC_GetPlayerUID;
|
||||
_friendName = name _x;
|
||||
Humans set [count Humans, [_friendUID,_friendName]];
|
||||
Humans set [count Humans, [_friendUID,toArray _friendName]];
|
||||
lbAdd [7101, _friendName];
|
||||
};
|
||||
} forEach _closePeople;
|
||||
|
||||
Reference in New Issue
Block a user