Server Error Please help

Im getting this error right when the server is about to fully load please help here is the code

[ERROR] gamemodes/darkrp/gamemode/modules/doorsystem/sh_doors.lua:175: bad argum
ent #1 to ‘WriteUInt’ (number expected, got nil)

  1. WriteUInt - [C]:-1

  2. write - gamemodes/darkrp/gamemode/modules/doorsystem/sh_doors.lua:175
    3. writeNetDoorVar - gamemodes/darkrp/gamemode/modules/doorsystem/sh_doors.l
    ua:152
    4. updateDoorData - gamemodes/darkrp/gamemode/modules/doorsystem/sv_doorvar
    s.lua:176
    5. setDoorGroup - gamemodes/darkrp/gamemode/modules/doorsystem/sv_doorvars
    .lua:29
    6. callback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:443
    7. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:302

    1. setUpGroupDoors - gamemodes/darkrp/gamemode/modules/base/sv_data.lua
      :433
      9. callback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:166
      10. tableExists - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqli
      te.lua:382
      11. onFinished - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:
      193
      12. commit - gamemoTimer Failed! [Simple][@gamemodes/darkrp/gamemod
      e/libraries/mysqlite/mysqlite.lua (line 161)]