roriscrave 21 Postado Julho 2, 2012 Share Postado Julho 2, 2012 Meu server ao ficar online, fica dando esse error: Como resolvo isso? Darei rep+ [02/07/2012 00:22:59] data/lib/034-exhaustion.lua:8: field 'day' missing in date table [02/07/2012 00:22:59] stack traceback: [02/07/2012 00:22:59] [C]: in function 'time' [02/07/2012 00:22:59] data/lib/034-exhaustion.lua:8: in function 'check' [02/07/2012 00:22:59] [string "loadBuffer"]:13: in function <[string "loadBuffer"]:8> Link para o comentário https://xtibia.com/forum/topic/189087-encerrado-duvida-script-com-bug/ Compartilhar em outros sites More sharing options...
Fir3element 185 Postado Julho 2, 2012 Share Postado Julho 2, 2012 Apaga tudo e coloca isso: exhaustion = { check = function (cid, storage) if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end return getPlayerStorageValue(cid, storage) >= os.time(t) end, get = function (cid, storage) if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end local exhaust = getPlayerStorageValue(cid, storage) if(exhaust > 0) then local left = exhaust - os.time(t) if(left >= 0) then return left end end return false end, set = function (cid, storage, time) setPlayerStorageValue(cid, storage, os.time(t) + time) end, make = function (cid, storage, time) local exhaust = exhaustion.get(cid, storage) if(not exhaust) then exhaustion.set(cid, storage, time) return true end return false end } Link para o comentário https://xtibia.com/forum/topic/189087-encerrado-duvida-script-com-bug/#findComment-1287368 Compartilhar em outros sites More sharing options...
roriscrave 21 Postado Julho 3, 2012 Autor Share Postado Julho 3, 2012 (editado) <p>o meu ta assim, tem algum erro? exhaustion = { check = function (cid, storage) if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end return getPlayerStorageValue(cid, storage) >= os.time(t) end, get = function (cid, storage) if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end local exhaust = getPlayerStorageValue(cid, storage) if(exhaust > 0) then local left = exhaust - os.time(t) if(left >= 0) then return left end end return false end, set = function (cid, storage, time) setPlayerStorageValue(cid, storage, os.time(t) + time) end, make = function (cid, storage, time) local exhaust = exhaustion.get(cid, storage) if(not exhaust) then exhaustion.set(cid, storage, time) return true end return false end } Editado Julho 3, 2012 por roriscrave Link para o comentário https://xtibia.com/forum/topic/189087-encerrado-duvida-script-com-bug/#findComment-1287857 Compartilhar em outros sites More sharing options...
Fir3element 185 Postado Julho 3, 2012 Share Postado Julho 3, 2012 (editado) O erro ta em outro arquivo que usa essa lib... Editado Julho 3, 2012 por fireelement Link para o comentário https://xtibia.com/forum/topic/189087-encerrado-duvida-script-com-bug/#findComment-1287890 Compartilhar em outros sites More sharing options...
roriscrave 21 Postado Julho 4, 2012 Autor Share Postado Julho 4, 2012 e como eu sei ql arquivo eh?? Link para o comentário https://xtibia.com/forum/topic/189087-encerrado-duvida-script-com-bug/#findComment-1288370 Compartilhar em outros sites More sharing options...
Stigal 584 Postado Abril 20, 2018 Share Postado Abril 20, 2018 A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. + Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda. * Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado. Link para o comentário https://xtibia.com/forum/topic/189087-encerrado-duvida-script-com-bug/#findComment-1731551 Compartilhar em outros sites More sharing options...
Posts Recomendados