General > Developers Corner
Lua error
ojbristow:
Hello,
When I try to add someone to the rank 'TTTAdmin' everything is fine until someone views the 'Scoreboard'. When you try to view the scoreboard and a TTTAdmin is online you will get kicked. Here is the error:
--- Code: ---[[SPCL] Owen|2|STEAM_0:1:50719053] Lua Error:
[ERROR] lua/vgui/dlabel.lua:68: bad key to string index (number expected, got string)
1. error - [C]:-1
2. __index - lua/includes/extensions/string.lua:262
3. ApplySchemeSettings - lua/vgui/dlabel.lua:68
4. unknown - lua/vgui/dlabel.lua:74
--- End code ---
I have never edited anything in the sting.lua and dlabel.lua. I have noidea how to fix this, any help would be much appreciated!
Thanks,
Owen
Decicus:
Do you have a custom scoreboard with ranks or something? If so, copy/paste the gamemodes/terrortown/gamemode/vgui/sb_row.lua.
Use the code BB code.
Neku:
If you are using the default TTT scoreboard, you can't just edit the sb_row.
You must also configure the sb_main as well.
A simple Google search will net you the code for both.
ojbristow:
I have the set the scoreboard up properly, probably should have said that in the first post, it is working for the rest of the ranks.
Thanks,
Owen
Neku:
--- Quote from: ojbristow on January 04, 2014, 03:18:10 PM ---I have the set the scoreboard up properly, probably should have said that in the first post, it is working for the rest of the ranks.
Thanks,
Owen
--- End quote ---
In that case, post your sb_row.Lua for me please.
Navigation
[0] Message Index
[#] Next page
Go to full version