[SOLVED] Sqlite3 Rows
#11
Your code is a total unreadable mess.

But the main issue I see is that you're opening a DB file and trying to read data from it, although you have no guarantee that the DB file even has the table you're reading. And it doesn't. When you open a file without any path, you're opening it in "current folder", which normally is right next to the Cuberite executable. The sqlite3 file that you have in your plugin folder doesn't get touched at all.

For testing purposes, you can manually fill the DB file next to the Cuberite executable with data. But for a well-behaved plugin, your code should, in its final version, check the file and do any adjustments (create tables, add missing columns) that it needs before further using that file.
Reply
Thanks given by:


Messages In This Thread
[SOLVED] Sqlite3 Rows - by denwo - 11-03-2016, 12:53 AM
RE: Sqlite3 Rows. - by NiLSPACE - 11-03-2016, 01:56 AM
RE: Sqlite3 Rows. - by denwo - 11-03-2016, 05:28 AM
RE: Sqlite3 Rows. - by NiLSPACE - 11-03-2016, 06:47 AM
RE: Sqlite3 Rows. - by xoft - 11-03-2016, 04:58 PM
RE: Sqlite3 Rows. - by xoft - 11-03-2016, 05:01 PM
RE: Sqlite3 Rows. - by denwo - 11-03-2016, 11:33 PM
RE: Sqlite3 Rows. - by xoft - 11-04-2016, 12:32 AM
RE: Sqlite3 Rows. - by denwo - 11-04-2016, 12:55 AM
RE: Sqlite3 Rows. - by denwo - 11-05-2016, 05:06 AM
RE: [SOLVED] Sqlite3 Rows - by xoft - 11-05-2016, 09:11 PM
RE: [SOLVED] Sqlite3 Rows - by denwo - 11-06-2016, 07:18 AM
RE: [SOLVED] Sqlite3 Rows - by ShadowCone - 11-06-2016, 08:46 AM
RE: [SOLVED] Sqlite3 Rows - by denwo - 11-07-2016, 11:23 PM
RE: [SOLVED] Sqlite3 Rows - by xoft - 11-08-2016, 12:11 AM
RE: [SOLVED] Sqlite3 Rows - by xoft - 11-08-2016, 12:13 AM
RE: [SOLVED] Sqlite3 Rows - by PureTryOut - 11-08-2016, 10:50 PM
RE: [SOLVED] Sqlite3 Rows - by NiLSPACE - 11-08-2016, 10:55 PM
RE: [SOLVED] Sqlite3 Rows - by denwo - 11-09-2016, 07:02 AM



Users browsing this thread: 1 Guest(s)