mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-08 17:22:54 +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:
@@ -5,7 +5,7 @@ _plots = nearestObjects [[player] call FNC_getPos, ["Plastic_Pole_EP1_DZ"],15];
|
||||
_thePlot = _plots select 0;
|
||||
_friendlies = _thePlot getVariable ["plotfriends", []];
|
||||
{
|
||||
lbAdd [7002, (_x select 1)];
|
||||
lbAdd [7002, toString (_x select 1)];
|
||||
} forEach _friendlies; // count causes Error Type Number, expected Bool here
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Humans = [];
|
||||
if (isPlayer _x) then {
|
||||
_friendUID = [_x] call FNC_GetPlayerUID;
|
||||
_friendName = name _x;
|
||||
Humans = Humans + [[_friendUID,_friendName]];
|
||||
Humans = Humans + [[_friendUID,toArray _friendName]];
|
||||
lbAdd [7001, _friendName];
|
||||
};
|
||||
} forEach _closePeople; // count causes Error Type Number, expected Bool here
|
||||
Reference in New Issue
Block a user