Jump to content

[AYUDA] Necesito ayuda para insertar valores a registry.db...


Recommended Posts

Este es el código que he hecho hasta ahora...
 
AreaGuerra = {
    11577.6806640625663.0947265625180, 120, , 0, 0, 0, 1698.1025390625, 679.1884765625, 14.822175979614
}
 
function tables1 ()
    executeSQLQuery("CREATE TABLE IF NOT EXISTS Gang_truf (ID INTEGER, X REAL, Y REAL, W REAL, H REAL, Gang STRING, R, G, B, sX REAL, sY REAL, sZ REAL)")
    for i, tables in ipairs(AreaGuerra) do
        local ID, X, Y, W, H, Gang, R, G, B, sX, sY, sZ = tables[1], tables[2], tables[3], tables[4], tables[5], tables[6], tables[7], tables[8], tables[9], tables[10], tables[11], tables[12]
        executeSQLQuery("insert into Gang_truf(ID, X, Y, W, H, Gang, R, G, B, sX, sY, sZ) values(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", ID, X, Y, W, H, Gang, R, G, B, sX, sY, sZ)
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), tables1)
Edited by f4ceb0ok
Esto es lo que he hecho hasta ahora, pero no me sale, en la terminal me dice: SCRIPT ERROR: [Nuevos]\Prueba_Database\g_Prueba_Database.lua:3: unexpected symbol near ','
Link to comment
  • f4ceb0ok changed the title to [AYUDA] Necesito ayuda para insertar valores a registry.db...
  • Scripting Moderators

Hi, welcome to the forums!

I've moved your thread to the Spanish scripting section so you can get better assistance in your native language.
Make sure to always use English when posting outside this section!

  • Like 1
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...