[B][U]Hello facepunch[/U][/B],
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!
[U][B]Error[/B][/U]
[code][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
[/code]
[U][B]Line 157[/B][/U]
[code]
draw.SimpleText(v:getDarkRPVar("rpname"),"retroregular", 94, 5, Color(255, 255, 0, 255), TEXT_ALIGN_CENTER)
[/code]
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.
[CODE]
if not IsValid( v ) then
[self/row/element/anynameyouassignedit]:Remove()
return
end
[/CODE]
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/ColorAlpha]ColorAlpha[/url]
[CODE]ColorAlpha( team.GetColor( v:Team ), 150 )[/CODE]
[QUOTE=Bull29;52088359]on top of your paint code, as the very first thing; place this.
[CODE]
if not IsValid( v ) then
[self/row/element/anynameyouassignedit]:Remove()
return
end
[/CODE]
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/ColorAlpha]ColorAlpha[/url]
[CODE]ColorAlpha( team.GetColor( v:Team ), 150 )[/CODE][/QUOTE]
Really helpful, thank you!
Sorry, you need to Log In to post a reply to this thread.