General > Developers Corner
DarkRP nil name in XGUI. (Possible Fix?)
Digital Spit:
I'm positive there has been quite a few tickets submitted about this issue with DarkRP I know I myself have submitted one. However if they can't recreate the problem then they won't fix it.
Also keep in mind with every new revision it's possible FTPJE has fixed something or rewritten a function that could interfere with the code you're working on... (I'm sure you've thought of this already I'm just putting my two cents in....not really helpful...I'm gonna go now....)
Stickly Man!:
Well, that was easier to fix than I thought it would be. This error is caused by a small mistake in DarkRP's code-- I'll be contacting the developer right away.
If you want to fix it right now, open up darkrp\gamemode\init.lua, and replace line 34:
--- Code: ---return tostring(self.DarkRPVars.rpname) or self:SteamName()
--- End code ---
With this line:
--- Code: ---return self.DarkRPVars.rpname and tostring(self.DarkRPVars.rpname) or self:SteamName()
--- End code ---
Then do a changemap and your problem should be solved!
Stickly Man!:
Update:
I did successfully get a hold of the FPtje, and I confirmed that he did indeed get the issue fixed and pushed several days ago in DarkRP SVN rev. 1176.
If you're still seeing "nil" on some names, then you should remove / readd them, or wait for them to join (as that should fix it).
LuaTenshi:
--- Quote from: Stickly Man! on June 09, 2012, 03:10:44 PM ---Update:
I did successfully get a hold of the FPtje, and I confirmed that he did indeed get the issue fixed and pushed several days ago in DarkRP SVN rev. 1176.
If you're still seeing "nil" on some names, then you should remove / readd them, or wait for them to join (as that should fix it).
--- End quote ---
Okay thank you very much.
(...and sorry for bumping, but a thanks had to be said.)
Navigation
[0] Message Index
[*] Previous page
Go to full version