Postado Junho 22, 2019 5 anos Autor 2 minutos atrás, movie disse: local tempo = 30 -- Dias para pegar local premio = 5 -- Número de premium points que irá ganhar -- Não mexa daqui pra baixo -- local storage = 18534 local tempo = tempo * 24 * 60 * 60 function onSay(cid, words, param) local acc = getPlayerAccountId(cid) if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then if getPlayerStorageValue(cid, storage) > os.time() then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".") else setPlayerStorageValue(cid, storage, (tempo) + os.time()) executeQuery("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ") end end return true end Erro dnv k https://github.com/italoxxx1
Postado Junho 22, 2019 5 anos Solução O mesmo erro? local tempo = 30 -- Dias para pegar local premio = 5 -- Número de premium points que irá ganhar -- Não mexa daqui pra baixo -- local storage = 18534 local tempo = tempo * 24 * 60 * 60 function onSay(cid, words, param) local acc = getPlayerAccountId(cid) if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then if getPlayerStorageValue(cid, storage) > os.time() then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".") else setPlayerStorageValue(cid, storage, (tempo) + os.time()) db.query("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ") end end return true end Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 22, 2019 5 anos Autor 7 minutos atrás, movie disse: O mesmo erro? local tempo = 30 -- Dias para pegar local premio = 5 -- Número de premium points que irá ganhar -- Não mexa daqui pra baixo -- local storage = 18534 local tempo = tempo * 24 * 60 * 60 function onSay(cid, words, param) local acc = getPlayerAccountId(cid) if getPlayerGroupId(cid) == 1 or getPlayerGroupId(cid) == 2 or getPlayerGroupId(cid) == 3 then if getPlayerStorageValue(cid, storage) > os.time() then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can take the reward again at "..os.date("%d %B %Y %X", getPlayerStorageValue(cid, storage))..".") else setPlayerStorageValue(cid, storage, (tempo) + os.time()) db.query("UPDATE `accounts` SET premium_points = ".. premio .." WHERE `id` = " .. acc) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You won ".. premio.." Premium Points for your good service! ") end end return true end Sim, o mesmo erro. https://github.com/italoxxx1
Postado Junho 22, 2019 5 anos Vá na sua pasta lib e posta o compat.lua, por favor. Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 22, 2019 5 anos Autor Deu certo já, obrigado! Editado Junho 22, 2019 5 anos por ITALOx (veja o histórico de edições) https://github.com/italoxxx1
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.