rebel1324 / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.net
MIT License
65 stars 31 forks source link

Log bug when taking damage (1.1-beta) #233

Closed ts-co closed 6 years ago

ts-co commented 6 years ago

When someone is getting damaged from drowning you receive this serverside error:

[ERROR] gamemodes/nutscript/gamemode/core/libs/sh_log.lua:45: bad argument #5 to 'text' (number expected, got nil)
  1. text - [C]:-1
   2. getString - gamemodes/nutscript/gamemode/core/libs/sh_log.lua:45
    3. add - gamemodes/nutscript/gamemode/core/libs/sh_log.lua:67
     4. unknown - gamemodes/nutscript/gamemode/core/hooks/sv_hooks.lua:420
      5. TakeDamage - [C]:-1
       6. unknown - gamemodes/nutscript/plugins/playerinjuries/sv_drowning.lua:18
SleepyMode commented 6 years ago

Seeing as you changed the title, does this count for all damage types or only drowning?