mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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.
13 lines
347 B
Plaintext
13 lines
347 B
Plaintext
private ["_plots","_friendlies","_thePlot"];
|
|
|
|
lbClear 7002;
|
|
_plots = nearestObjects [[player] call FNC_getPos, ["Plastic_Pole_EP1_DZ"],15];
|
|
_thePlot = _plots select 0;
|
|
_friendlies = _thePlot getVariable ["plotfriends", []];
|
|
{
|
|
lbAdd [7002, toString (_x select 1)];
|
|
} forEach _friendlies; // count causes Error Type Number, expected Bool here
|
|
|
|
|
|
|