I'm making a plugin and need to store some data.
I'm using sqlite3 and everytime i run my cuberite server i see this error.
Here's my code
EDIT:
i just realised that i'm an idiot the db files were located in cuberite's folder not in the plugin's folder
I'm using sqlite3 and everytime i run my cuberite server i see this error.
1 2 | [10:45:24] Can't load plugin TestPlugin because of an initialization error in file Plugins/TestPlugin/test.lua: 2 (no such table: table) <span style= "color: #333333;" class= "mycode_color" ><span style= "font-size: small;" class= "mycode_size" ><span style= "font-family: Monaco, Consolas, Courier, monospace;" class= "mycode_font" ></span></span></span> |
Here's my code
1 2 3 4 | <span style= "color: #333333;" class= "mycode_color" ><span style= "font-size: small;" class= "mycode_size" ><span style= "font-family: Monaco, Consolas, Courier, monospace;" class= "mycode_font" >db = sqlite3.open( 'test.sqlite3' )</span></span></span> <span style= "color: #333333;" class= "mycode_color" ><span style= "font-size: small;" class= "mycode_size" ><span style= "font-family: Monaco, Consolas, Courier, monospace;" class= "mycode_font" >LOG(db.rows( 'SELECT * FROM table' ))</span></span></span> <span style= "color: #333333;" class= "mycode_color" ><span style= "font-size: small;" class= "mycode_size" ><span style= "font-family: Monaco, Consolas, Courier, monospace;" class= "mycode_font" >db:close()</span></span></span> <span style= "color: #333333;" class= "mycode_color" ><span style= "font-size: small;" class= "mycode_size" ><span style= "font-family: Monaco, Consolas, Courier, monospace;" class= "mycode_font" ></span></span></span> |
EDIT:
i just realised that i'm an idiot the db files were located in cuberite's folder not in the plugin's folder