So i ve created a script that moves string from gui edit box to server and then i want the text to be exported in sqlite database, server says there is no such a table but I see the table is there so what s the problem?
--CLIENT
function outputEditBox ( button )
if button == "left" then
text = guiGetText ( gui.editbox )
triggerServerEvent ( "creatovcheek", resourceRoot, text )
end
end
--SERVER
function listofgrid (arenaname)
--table.insert(tablel, arenaname)
--dbazo = exports.db:konekcja()
local dbazo = exports.db:konekcja()
dbExec( dbazo, "INSERT INTO areny(nazwa) VALUES (?)", arenaname)
end
addEvent( "creatovcheek", true )
addEventHandler( "creatovcheek", resourceRoot, listofgrid )