TTT_Spectator_Deathmatch icon indicating copy to clipboard operation
TTT_Spectator_Deathmatch copied to clipboard

error

Open dok441 opened this issue 6 years ago • 4 comments

[ERROR] addons/spectator_deathmatch-master/lua/specdm_von.lua:801: bad argument #1 to 'error' (table expected, got string)

  1. error - [C]:-1
  2. serialize - addons/spectator_deathmatch-master/lua/specdm_von.lua:801 3. func - addons/spectator_deathmatch-master/lua/sv_stats.lua:209 4. unknown - lua/includes/extensions/net.lua:32

dok441 avatar Jan 21 '19 08:01 dok441

Does this happen frequently or when doing something specific? Putting

print(query_str)
print(query)

before sv_stats.lua#L209 should help identifing the problem if it is somehow reproducible. Note that every request is logged in console.

MinIsMin avatar Jan 21 '19 14:01 MinIsMin

When you enter these commands in the server console, nothing happens.

dok441 avatar Jan 24 '19 17:01 dok441

No, you need to put the text in the file sv_stats.lua before the line 209.

Did this error occur in normal TTT? If not, please test without any other addons in normal TTT.

MinIsMin avatar Jan 24 '19 18:01 MinIsMin

It would be easy to experience it, knowing I'm the reason why this happened, if anything, is used ТТТ2 https://github.com/Alf21/TTT2 Version of your work, sensitive changed, https://github.com/Alf21/TTT_Spectator_Deathmatch It would be great if you implemented this fix into your version so that it works in this mode and you can continue to work on it.

dok441 avatar Jan 24 '19 18:01 dok441