Mini_SCR Posted February 13, 2021 Share Posted February 13, 2021 (edited) Seguinte Erro: ERROR: [SCRIPTS] / [VIP] /tempovip/server.lua:246: tentativa de indexar 'termino' local (um valor booleano) SE ALGUEM PODER ME AJUDAR Edited February 13, 2021 by Mini_SCR Link to comment
Other Languages Moderators androksi Posted February 13, 2021 Other Languages Moderators Share Posted February 13, 2021 Olá. Seja bem-vindo(a) ao fórum. Compartilhe o trecho do código cujo está retornando erro para que nós possamos o ajudar. Todos os erros que aparecem no debugscript 3 são irrelevantes a partir do momento que nós não estamos vendo o código que está sendo executado. 1 Link to comment
Mini_SCR Posted February 13, 2021 Author Share Posted February 13, 2021 (edited) https://imgur.com/SL3e1rL Ai Está, Tento Ver A Lista De VIPs, E Acontece Esse Erro No DebugScript 3 aqui o trecho do script: addEvent( "getVipList", true ) addEventHandler( "getVipList", resourceRoot, function(staff) staff = staff or client local vipList = executeSQLQuery("SELECT * FROM VIPS") for _, row in ipairs(vipList) do local inicio = getRealTime(row.inicio) local termino = getRealTime(row.termino) row.nick = row.nick:gsub("#%x%x%x%x%x%x", "") row.type = row.type row.staff = row.staff:gsub("#%x%x%x%x%x%x", "") row.inicio = string.format ( "%02d/%02d/%d", inicio.monthday, inicio.month +1, inicio.year +1900) row.tempo = secondsToTimeDesc(row.termino - getRealTime().timestamp) row.termino = string.format ( "%02d/%02d/%d", termino.monthday, termino.month +1, termino.year +1900) ESSA LINHA É A 246 QUE MOSTRA NO DEBUGSCRIPT: -> row.termino = string.format ( "%02d/%02d/%d", termino.monthday, termino.month +1, termino.year +1900) Edited February 13, 2021 by Mini_SCR Link to comment
Other Languages Moderators androksi Posted February 13, 2021 Other Languages Moderators Share Posted February 13, 2021 Por favor, use a ferramenta de código: Insira o seu código no campo especificado e marque a linguagem Lua. 1 Link to comment
Mini_SCR Posted February 14, 2021 Author Share Posted February 14, 2021 addEvent( "getVipList", true ) addEventHandler( "getVipList", resourceRoot, function(staff) staff = staff or client local vipList = executeSQLQuery("SELECT * FROM VIPS") for _, row in ipairs(vipList) do local inicio = getRealTime(row.inicio) local termino = getRealTime(row.termino) row.nick = row.nick:gsub("#%x%x%x%x%x%x", "") row.type = row.type row.staff = row.staff:gsub("#%x%x%x%x%x%x", "") row.inicio = string.format ( "%02d/%02d/%d", inicio.monthday, inicio.month +1, inicio.year +1900) row.tempo = secondsToTimeDesc(row.termino - getRealTime().timestamp) row.termino = string.format ( "%02d/%02d/%d", termino.monthday, termino.month +1, termino.year +1900) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now