Erro de retorno corrigido

master
BrunoMine 2016-07-29 21:59:16 -03:00
parent 6a9d613120
commit 739c35585d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
-- Proteger uma area -- Proteger uma area
gestor.proteger_area = function(name, PlayerName, AreaName, pos1, pos2, silencio) gestor.proteger_area = function(name, PlayerName, AreaName, pos1, pos2, silencio)
if not tostring(PlayerName) or not tostring(AreaName) then return "Faltam argumentos ou estao incorretos" end if not tostring(PlayerName) or not tostring(AreaName) then return "Faltam argumentos ou estao incorretos" end
if not areas or not area.add then "Faltou mod areas" end if not areas or not area.add then return "Faltou mod areas" end
local param = tostring(PlayerName).." "..tostring(AreaName) local param = tostring(PlayerName).." "..tostring(AreaName)
local found, _, ownername, areaname = param:find('^([^ ]+) (.+)$') local found, _, ownername, areaname = param:find('^([^ ]+) (.+)$')