Scoreboard Help

Hello facepunch,

So I’ve had this error for quite awhile now and can’t seem to figure out how to fix it. It only happens when players disconnect and you’re looking at the scoreboard. If someone could help me that’d be great. Thanks!

Error


[ERROR] gamemodes/darkrp/gamemode/modules/base/cl_entityvars.lua:8: Tried to use a NULL entity!
  1. UserID - [C]:-1
   2. getDarkRPVar - gamemodes/darkrp/gamemode/modules/base/cl_entityvars.lua:8
    3. unknown - addons/retroscoreboard/lua/autorun/client/cl_scoreboard.lua:157


Line 157



draw.SimpleText(v:getDarkRPVar("rpname"),"retroregular", 94, 5, Color(255, 255, 0, 255), TEXT_ALIGN_CENTER)


Also, is there a way to use team.GetColor with an alpha value?

on top of your paint code, as the very first thing; place this.



if not IsValid( v ) then
     [self/row/element/anynameyouassignedit]:Remove()
     return
end


ColorAlpha


ColorAlpha( team.GetColor( v:Team ), 150 )

Really helpful, thank you!