mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fixed error with LuaPlayer.connected
This commit is contained in:
@@ -84,7 +84,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#update">update ([frame[, players]])</a></td>
|
<td class="name" nowrap><a href="#update">update ([frame[, players]])</a></td>
|
||||||
<td class="summary">This is used to update all the guis of conected players, good idea to use our thread system as it as nested for loops</td>
|
<td class="summary">This is used to update all the guis of connected players, good idea to use our thread system as it as nested for loops</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#open">open (left_name)</a></td>
|
<td class="name" nowrap><a href="#open">open (left_name)</a></td>
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
<strong>update ([frame[, players]])</strong>
|
<strong>update ([frame[, players]])</strong>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
This is used to update all the guis of conected players, good idea to use our thread system as it as nested for loops
|
This is used to update all the guis of connected players, good idea to use our thread system as it as nested for loops
|
||||||
|
|
||||||
|
|
||||||
<h3>Parameters:</h3>
|
<h3>Parameters:</h3>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ commands.validate = {
|
|||||||
['player-online']=function(value,event)
|
['player-online']=function(value,event)
|
||||||
local player,err = commands.validate['player'](value)
|
local player,err = commands.validate['player'](value)
|
||||||
if err then return commands.error(err) end
|
if err then return commands.error(err) end
|
||||||
local rtn = player.conected and player or nil
|
local rtn = player.connected and player or nil
|
||||||
if not rtn then return commands.error{'ExpGamingCore_Command.error-player-online'} end return rtn end,
|
if not rtn then return commands.error{'ExpGamingCore_Command.error-player-online'} end return rtn end,
|
||||||
['player-alive']=function(value,event)
|
['player-alive']=function(value,event)
|
||||||
local player,err = commands.validate['player-online'](value)
|
local player,err = commands.validate['player-online'](value)
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ function left.add(obj)
|
|||||||
return obj
|
return obj
|
||||||
end
|
end
|
||||||
|
|
||||||
--- This is used to update all the guis of conected players, good idea to use our thread system as it as nested for loops
|
--- This is used to update all the guis of connected players, good idea to use our thread system as it as nested for loops
|
||||||
-- @usage Gui.left.update()
|
-- @usage Gui.left.update()
|
||||||
-- @tparam[opt] string frame this is the name of a frame if you only want to update one
|
-- @tparam[opt] string frame this is the name of a frame if you only want to update one
|
||||||
-- @param[opt] players the player to update for, if not given all players are updated, can be one player
|
-- @param[opt] players the player to update for, if not given all players are updated, can be one player
|
||||||
|
|||||||
Reference in New Issue
Block a user