mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Fixed Read Only Value
This commit is contained in:
@@ -130,10 +130,11 @@ end
|
|||||||
function Sync.count_players(online)
|
function Sync.count_players(online)
|
||||||
if not game then return {'Offline'} end
|
if not game then return {'Offline'} end
|
||||||
local _players = {}
|
local _players = {}
|
||||||
|
local players = {}
|
||||||
if online then _players = game.connected_players else _players = game.players end
|
if online then _players = game.connected_players else _players = game.players end
|
||||||
for k,player in pairs(_players) do _players[k] = player.name end
|
for k,player in pairs(_players) do table.insert(players,player.name) end
|
||||||
_players._n = #_players
|
players._n = #players
|
||||||
return _players
|
return players
|
||||||
end
|
end
|
||||||
|
|
||||||
--- used to get the number of players resulting in there play times
|
--- used to get the number of players resulting in there play times
|
||||||
|
|||||||
Reference in New Issue
Block a user