Chessnut / hl2rp

A NutScript framework schema based off Half-Life 2.
http://nutscript.rocks
MIT License
26 stars 34 forks source link

[1.1] Radio Error #73

Closed blt950 closed 9 years ago

blt950 commented 9 years ago

I'm having a radio error that randomly comes up. Once it works all fine, then it suddenly stops working for everyone and so on. This errors prints on each time someone uses radio when it's in broken state.

[ERROR] gamemodes/hl2rp/plugins/radio/sh_plugin.lua:209: attempt to index a nil value
  1. onCanHear - gamemodes/hl2rp/plugins/radio/sh_plugin.lua:209
   2. send - gamemodes/nutscript/gamemode/core/libs/sh_chatbox.lua:155
    3. Run - gamemodes/nutscript/gamemode/core/hooks/sv_hooks.lua:237
     4. unknown - gamemodes/nutscript/plugins/chatbox/sh_plugin.lua:69
      5. func - gamemodes/nutscript/gamemode/core/libs/external/sh_netstream2.lua:117
       6. unknown - lua/includes/modules/net.lua:32
NDKilla commented 9 years ago

Can easily replicate the issue. I get this issue every single time someone tries to /radio where they're the only person on that frequency. I googled the issue and updated the sh_plugin.lua file with something I found in a patch on the /nutscript/ thing, but it only temporarily fixed it..

Chessnut commented 9 years ago

Duplicate of #62