Jump to content

logs 'mysql:lazyQuery' [string "?"] // OWLGaming


Recommended Posts

Hello there, i need help with "log" resource in GM: OwlGaming ( the owner stopped doing maintenance on the gm but i understand that there are many people who know about support for it. )

the error is this:

[2024-06-29 14:42:17] ERROR: logs\s_logs.lua:117: call: failed to call 'mysql:lazyQuery' [string "?"]

the extract of resource in line "117" is this:

    local query = "INSERT INTO `owl_logs` VALUES ('"..timeString.."', '".. exports.mysql:escape_string(actionStr) .."', '".. exports.mysql:escape_string(sourceStr).."', '".. exports.mysql:escape_string(affectedStr).."', '".. exports.mysql:escape_string(data).."')"
    
 line 117 >>>>>   exports.mysql:lazyQuery(query, function(result, error)
        if not result then
            outputDebugString("Error al insertar en owl_logs: " .. tostring(err))
        else
            outputDebugString("Datos insertados correctamente en owl_logs.")
        end
    end)
    
    return true
end
 

anyone can help me please?
My ds: hiroelbrigido

Edited by xkr4nxz
apply the especific line (117)
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...