FPtje / DarkRP

DarkRP, a non-serious roleplay gamemode for Garry's Mod.
https://darkrp.miraheze.org
MIT License
459 stars 709 forks source link

[ERROR] Nil Players #843

Closed MuteTM closed 11 years ago

MuteTM commented 11 years ago

If a player disconnects at a specific point during connection (When sourcebans kicks banned players), they continue to show on the scoreboard. When you click their name to view their information, a lua error prints. If you close the scoreboard while looking at said player's details, it breaks the scoreboard requiring a reconnect to fix.

[ERROR] gamemodes/darkrp/gamemode/shared/fadmin_darkrp.lua:130: attempt to concatenate a nil value
  1. func - gamemodes/darkrp/gamemode/shared/fadmin_darkrp.lua:130
   2. Show - gamemodes/darkrp/gamemode/fadmin/cl_interface/cl_scoreboardplayer.lua:60
    3. ChangeView - gamemodes/darkrp/gamemode/fadmin/cl_interface/cl_scoreboard.lua:10
     4. DoClick - gamemodes/darkrp/gamemode/fadmin/cl_interface/cl_controls.lua:184
      5. unknown - lua/vgui/dlabel.lua:206

To put it simply: Nil player details cause lua errors.

Shigbeard commented 11 years ago

This may be related to when a player disconnects while a player is holding the scoreboard open. You see their name but no color or stuff

MuteTM commented 11 years ago

With this they keep a team color and job, but could be.

FPtje commented 11 years ago

Error is impossible in latest DarkRP. Don't report bugs from old versions.