Hey, I tested a little bit around but I dont understand why the following code wont work. The first query is working. The Table is created but the Insert dont work. But why? Can someone please tell me what I did wrong.
Greetings Aggro
	
	
	
	
PLUGIN = nil
function Initialize(Plugin)
	Plugin:SetName("NewPlugin")
	Plugin:SetVersion(1)
	PLUGIN = Plugin
	
	LOG("Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
	
	TestDB = {}
	
	TestDB = sqlite3.open('TestDB.sqlite3')
	
	local sql = "CREATE TABLE IF NOT EXISTS TestTable(ID PRIMARY KEY,One,Two)"
	TestDB:exec(sql)
	local sqlq = "INSERT INTO TestTable(ID,One,Two) VALUES ('25','35','45')"
	TestDB:exec(sqlq)
	
	TestDB:close()
		
	return true
end
function OnDisable()
	LOG(PLUGIN:GetName() .. " is shutting down...")
end
Thanks a lot!Greetings Aggro

 

 
