TheXYZNetwork / xAdmin

A free and basic administration system for Garry's Mod.
The Unlicense
27 stars 6 forks source link

mySQLoo usage not working. #31

Closed TheRealPixit closed 3 years ago

TheRealPixit commented 3 years ago

So I originally wasn't using mySQLoo, after a bit of use I noticed that I don't keep my rank when rejoining so I looked in the issues and saw it was a persisting issue. D3Kyler was nice enough to tell me the console command to drop the table for users, so I did that and it was still a persisting issue. The only reason I didn't use mySQLoo was that when I tried it would always put me at the map origin point and break the DarkRP gamemode. Not sure if there is a fix or I just installed mySQLoo wrong, but I have done it the same as I always have, here is the error I get if anyone knows the fix.

16:32:40 "Pixit<2><>" connected, address "98.39.240.181:27005" 16:32:47 "Pixit<2><>" STEAM USERID validated 16:32:51 Lua Error: [xadmin-master] addons/xadmin-master/lua/xadmin/core/sv_db.lua:88: attempt to index field 'Connection' (a nil value) 1. Escape - addons/xadmin-master/lua/xadmin/core/sv_db.lua:88 2. SetUserGroup - addons/xadmin-master/lua/xadmin/core/sh_ply.lua:69 3. v - lua/includes/extensions/player_auth.lua:90 4. unknown - lua/includes/modules/hook.lua:84 16:32:51 Lua Error: [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635: attempt to index local 'jobTable' (a nil value) 1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635 16:32:51 Lua Error: [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760: attempt to index local 'jobTable' (a nil value) 1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760 16:32:51 "Pixit<2><>" entered the game 16:32:59 Lua Error: [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:86: bad argument #1 to 'pairs' (table expected, got nil) 1. pairs - [C]:-1 2. sendDarkRPVars - gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:86 3. unknown - gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:102 4. unknown - lua/includes/modules/concommand.lua:54 16:33:02 Lua Error: [ERROR] Warning! A net message (DarkRP_InitializeVars) is already started! Discarding in favor of the new message! (DarkRP_InitializeVars) 1. sendDarkRPVars - gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:80 2. unknown - gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:102 3. unknown - lua/includes/modules/concommand.lua:54 16:33:02 Lua Error: [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:86: bad argument #1 to 'pairs' (table expected, got nil) 1. pairs - [C]:-1 2. sendDarkRPVars - gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:86 3. unknown - gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:102 4. unknown - lua/includes/modules/concommand.lua:54

0wain commented 3 years ago

Have you got the MySQLoo module installed? Make sure it's for the right OS too.

If it is installed, a pastebin of your complete server-side startup console would be super helpful. If you're worried about it exposing private information you can always drop me a friend request on Discord and send it there (Owain#0001).

TheRealPixit commented 3 years ago

Have you got the MySQLoo module installed? Make sure it's for the right OS too.

If it is installed, a pastebin of your complete server-side startup console would be super helpful. If you're worried about it exposing private information you can always drop me a friend request on Discord and send it there (Owain#0001).

It was just me being an idiot, It's been a while since I have messed with mySQLoo and didn't enable it in DarkRP :/