FPtje / DarkRP

DarkRP, a non-serious roleplay gamemode for Garry's Mod.
https://darkrp.miraheze.org
MIT License
463 stars 710 forks source link

Job/Group Doors #1656

Closed Tsumiki-Chan closed 10 years ago

Tsumiki-Chan commented 10 years ago

The Jobs / Groups of Doors are being saved into the Database, but if you restart the Server, the Doors are buyable again. Same happens to unownable doors.

The error happens due to this error: gamemodes/darkrp/gamemode/modules/base/sv_data.lua:181: attempt to call field 'tableExists' (a nil value)

"tableExists" is never defined in the gamemode.

Partixel commented 10 years ago

I've had this happen several times, as well as doors appearing unowned when they weren't ( As we discussed on my server, FPtje )

Bo98 commented 10 years ago

tableExists is defined here: https://github.com/FPtje/DarkRP/blob/a095f9aac9e423887dc008bb2ffd6a4fb5d89dd3/gamemode/libraries/mysqlite/mysqlite.lua#L243

This is a repeating problem though. Whenever a change is made to a library then it breaks for some for a couple months. I have no idea why. Does your not mysqlite.lua not update?

Offgreenstum commented 10 years ago

I have this issue currently but I don't get the same error.

gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:123: attempt to index global 'databaseObject' (a nil value)

FPtje commented 10 years ago

Make sure you don't have an old version of FPP or something in your addons folder.