Michael Marsh 0 Posted November 2, 2019 Hi, I'm working on a multiplayer mission, where things like score, cash etc are saved to a clients profile space. This works very well, but I would like to have all the data saved on the server profile space instead. But I am having a problem getting all player UIDs into a new array. {getPlayerUID _x} foreach allplayers, just gives me the last result and not an array of UIDs. Share this post Link to post Share on other sites
Muzzleflash 111 Posted November 2, 2019 You want to use 'apply' instead of 'foreach'. And you then need to switch the order. Share this post Link to post Share on other sites
Michael Marsh 0 Posted November 2, 2019 Thankyou. allplayers apply { getPlayerUID _x} Share this post Link to post Share on other sites
pierremgi 4906 Posted November 2, 2019 At what time? allPlayers is just an array of the in-game players, not those who disconnected before the command. 1 Share this post Link to post Share on other sites