Postado Abril 14, 2020 5 anos Tfs 0.4 Fica dando esse erro, alguém pode ajudar pf Script: local configs = { players_db = {}, save_delay = 5, -- Segundos } function savePlayer() if #configs.players_db > 0 then doPlayerSave(configs.players_db[1]) table.remove(configs.players_db, 1) return addEvent(savePlayer, configs.save_delay * 1000) end return true end function onThink(interval) for _, cid in ipairs(getPlayersOnline()) do table.insert(configs.players_db, cid) end savePlayer() return true end Editado Abril 14, 2020 5 anos por Jinx (veja o histórico de edições)
Postado Abril 14, 2020 5 anos local configs = { players_db = {}, save_delay = 5, -- Segundos } function savePlayer() if isPlayer(cid) then if #configs.players_db > 0 then doPlayerSave(configs.players_db[1]) table.remove(configs.players_db, 1) return addEvent(savePlayer, configs.save_delay * 1000) end return true end end function onThink(interval) for _, cid in ipairs(getPlayersOnline()) do table.insert(configs.players_db, cid) end savePlayer() return true end Editado Abril 14, 2020 5 anos por Celulose (veja o histórico de edições)
Postado Abril 14, 2020 5 anos Autor Em 14/04/2020 em 21:21, Celulose disse: local configs = { players_db = {}, save_delay = 5, -- Segundos } function savePlayer() if isPlayer(cid) then if #configs.players_db > 0 then doPlayerSave(configs.players_db[1]) table.remove(configs.players_db, 1) return addEvent(savePlayer, configs.save_delay * 1000) end return true end end function onThink(interval) for _, cid in ipairs(getPlayersOnline()) do table.insert(configs.players_db, cid) end savePlayer() return true end Vlw meu rei
Postado Abril 15, 2020 5 anos Autor Em 14/04/2020 em 22:03, Magalhaes92 disse: Vlw meu rei Amigo.... Nao esta dando erro algum. Porem Nao esta salvado tbm !
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.