Nicksf13 / zombieplague

Garry's mod Gamemode
MIT License
9 stars 9 forks source link

Error after closing the server - Change zombie plague to save ammo packs like pointshop #10

Closed ErickMaksimets closed 4 years ago

ErickMaksimets commented 4 years ago

After you close the server with the gamemode turned on, you can observe the LUA error in the console.

Console message; [ERROR] gamemodes/zombieplague/gamemode/bankstorage/text.lua:14: attempt to concatenate a nil value

  1. Deposit - gamemodes/zombieplague/gamemode/bankstorage/text.lua:14
    1. Deposit - gamemodes/zombieplague/gamemode/sv_bank.lua:36
    2. v - gamemodes/zombieplague/gamemode/sv_bank.lua:78
      1. unknown - lua/includes/modules/hook.lua:84
Nicksf13 commented 4 years ago

Does this still happening?

ErickMaksimets commented 4 years ago

Does this still happening?

yeah

Nicksf13 commented 4 years ago

Tried It sometimes and I didn't reproduce this error

Nicksf13 commented 4 years ago

Can't reproduce

Nicksf13 commented 4 years ago

This is still happening, but I can't reproduce

Nicksf13 commented 4 years ago

This is happening due the nill player entity that stays on the server after Garry's mod's server shutdown. I will need to change how zombie plague save player's ammo packs

Nicksf13 commented 4 years ago

Changed how ammo pack bank saves the ammo packs. It will save the player's ammo pack every 5 seconds using SteamID64 string reference.