Debuged all functions

This commit is contained in:
Cooldude2606
2019-04-09 20:53:17 +01:00
parent d7474947f0
commit 73a319b220
9 changed files with 109 additions and 50 deletions

View File

@@ -50,7 +50,7 @@ end
function Game.get_player_from_any(obj)
local o_type = type(obj)
local p
if type == 'number' then
if o_type == 'number' then
p = Game.get_player_by_index(obj)
elseif o_type == 'string' then
p = game.players[obj]