FPtje / DarkRP

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

Error #2419

Closed dan2735 closed 8 years ago

dan2735 commented 8 years ago

Description of the bug

Error thrown at server startup.

How to make the bug happen

Start server

Lua errors

http://i.imgur.com/z02Bpd9.png

Why the developer of DarkRP is responsible for this issue

Because only change was updating to 2.7

Syzco commented 8 years ago

I also experience this issue. To give a little more information, this happens when any player joins the server (including bots).

Here is a written Error:

[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_data.lua:263: attempt to index local 'data' (a nil value)

  1. callback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:263
    1. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:302
    2. offlinePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:258
      1. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:303
      2. restorePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:390
      3. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:585

[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:604: attempt to index local 'jobTable' (a nil value)

  1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:604

[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:676: attempt to index local 'jobTable' (a nil value)

  1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:676

[ERROR] gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

  1. isMayor - gamemodes/darkrp/gamemode/libraries/fn.lua:252
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:807
FPtje commented 8 years ago

Always look for the earliest error, not the last. Not a help forum