cara, esse sistema é de 1.x.. não é atoa que não funciona.
Sem falar que
local hours = math.floor(remainingSeconds / 3600)
local minutes = math.floor((remainingSeconds % 3600) / 60)
local seconds = remainingSeconds % 60
em nenhum momento vc declarou oque é remainingSeconds, por isso o erro.




info
Grupo: Artesão
Registrado: 21/05/13
Posts: 110
Reputação: +3
Alguém poderia me ajudar a arrumar meu !frags que mostra o tempo do ultimo frag?
Estou usando: 0.4
local config = { useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')), advancedFragList = getBooleanFromString(getConfigValue('advancedFragList')) } function onSay(cid, words, param, channel) if(not config.useFragHandler) then return false end local hours = math.floor(remainingSeconds / 3600) local minutes = math.floor((remainingSeconds % 3600) / 60) local seconds = remainingSeconds % 60 local message = "You have " .. kills .. " unjustified kill" .. (kills > 1 and "s" or "") .. ". The amount of unjustified kills will decrease after: " if hours ~= 0 then if hours == 1 then message = message .. hours .. " hour, " else message = message .. hours .. " hours, " end end if hours ~= 0 or minutes ~= 0 then if minutes == 1 then message = message .. minutes .. " minute and " else message = message .. minutes .. " minutes and " end end if seconds == 1 then message = message .. seconds .. " second." else message = message .. seconds .. " seconds." end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, message) return true endErro:
http://i.imgur.com/ZkiU4kt.png