• Making a Table for "sv.db"
    3 replies, posted
Okay since the DarkRP gamemode doesn't work properly with my server. I have to take matters into my own hands. Problem is I don't know how to do this. Basically Im getting this error: [code] [ERROR] gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:298: no such table: FAdmin_PlayerGroup (SELECT groupname FROM FAdmin_PlayerGroup WHERE steamid = 'STEAM_0:0:000000000';) 1. error - [C]:-1 2. queryValue - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:298 3. fn - gamemodes/darkrp/gamemode/modules/fadmin/fadmin/access/sv_init.lua:382 [/code] This means the gamemode is not creating the table correctly (due to shitty code) and I have to manually create it in the database file. If you know what it looks like (FAdmin_PlayerGroup table) than it would mean alot to let me know. If you own a server with the gamemode, could you care to tell me how its set up. Im using SQLite Browser to make them so keep that in mine. These are the only tables it will make: [IMG]http://i.imgur.com/TlIeZfU.png[/IMG]
The fact that none of the tables are being created (the three you are seeing are created in a different way that's independent of your MySQL settings) indicates an earlier error, such as enabling MySQL when you aren't using it. You should track that down rather than creating the table manually.
It has to do with the init.lua not being loaded because of this error: [code] [ERROR] gamemodes/darkrp/gamemode/modules/chat/sh_chatcommands.lua:44: attempt to index a nil value 1. unknown - gamemodes/darkrp/gamemode/modules/chat/sh_chatcommands.lua:44 2. finish - gamemodes/darkrp/gamemode/libraries/interfaceloader.lua:163 3. unknown - gamemodes/darkrp/gamemode/init.lua:84 Couldn't Load Init Script: 'darkrp/gamemode/init.lua' [/code] Also before you say its fixed, it's not. I've re-downloaded it many times from github and its still doing the same thing. [editline]28th May 2016[/editline] [QUOTE=Bo98;50407329]The fact that none of the tables are being created (the three you are seeing are created in a different way that's independent of your MySQL settings) indicates an earlier error, such as enabling MySQL when you aren't using it. You should track that down rather than creating the table manually.[/QUOTE] I'm not using it nor do I have it set to "true". I tried getting it to work with MySQL (I actually learned a little about SQL while trying to fix this) and still same thing.
Sorry, you need to Log In to post a reply to this thread.