Jump to content

tempovip


Recommended Posts

  • Other Languages Moderators

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.

  • Like 1
Link to comment

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 by Mini_SCR
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...