Jump to content

[HELP] Necesito Una base de datos???


Monsthers

Recommended Posts

Hola, tengo un housing para mi server rpg este housing tiene, tienda de autos tienda de botes y tienda de casa, en esta gui podras gurdar tus autos y armas. pero tiene algunos errores. el cual e pedido ayuda a un scripter de facebook y me dijo que el script necesita una base de datos! yo no tengo ni la mas minima idea de que tipo de base necesite y como crearla! No uso mysql

Aqui el error

[2015-11-21 19:05:45] ERROR: RPGhousing\rpghousing.lua:221: Database query failed: no such table: icon_data 
[2015-11-21 19:05:45] ERROR: RPGhousing\rpghousing.lua:222: bad argument #1 to 'ipairs' (table expected, got string) 

Lineas del error

local iconsTable = executeSQLSelect("icon_data","houseid,status,x,y,z") 
    for k,v in ipairs(iconsTable) do 
        local id = v.houseid 
        local status = v.status 
        if string.find(id,"safe") then 

Link to comment

A esto te refieres?

local pickup = createPickup(v.x,v.y,v.z,3,1277,1000) 
            buyIcons[pickup] = {pickup,status,id} 
            createBlipAttachedTo(pickup,35,1,255,255,255,100,0,50 ) 
        elseif string.find(id,"marine") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1277,1000) 
            buyIcons[pickup] = {pickup,status,id} 
            createBlipAttachedTo(pickup,9,1,255,255,255,100,0,50 ) 
        elseif string.find(id,"vehicle_trader") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1274,1000) 
            buyIcons[pickup] = {pickup,status,id} 
        elseif string.find(id,"boat_trader") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1274,1000) 
            buyIcons[pickup] = {pickup,status,id} 
        elseif string.find(id,"bank") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1274,1000) 
            buyIcons[pickup] = {pickup,status,id} 
        elseif string.find(id,"gang") or string.find(id,"squad") or string.find(id,"company") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1314,1000) 
            buyIcons[pickup] = {pickup,status,id} 

Link to comment
A esto te refieres?
local pickup = createPickup(v.x,v.y,v.z,3,1277,1000) 
            buyIcons[pickup] = {pickup,status,id} 
            createBlipAttachedTo(pickup,35,1,255,255,255,100,0,50 ) 
        elseif string.find(id,"marine") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1277,1000) 
            buyIcons[pickup] = {pickup,status,id} 
            createBlipAttachedTo(pickup,9,1,255,255,255,100,0,50 ) 
        elseif string.find(id,"vehicle_trader") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1274,1000) 
            buyIcons[pickup] = {pickup,status,id} 
        elseif string.find(id,"boat_trader") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1274,1000) 
            buyIcons[pickup] = {pickup,status,id} 
        elseif string.find(id,"bank") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1274,1000) 
            buyIcons[pickup] = {pickup,status,id} 
        elseif string.find(id,"gang") or string.find(id,"squad") or string.find(id,"company") then 
            local pickup = createPickup(v.x,v.y,v.z,3,1314,1000) 
            buyIcons[pickup] = {pickup,status,id} 

Eso no es una tabla, son pickups que se crean por tablas.

Te dejare un tuto del Tío @venadHD

Link to comment
  • Recently Browsing   0 members

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