Everytime i try to open the C it just shows a gray screen then in console it says
[ERROR] gamemodes/terrortown/gamemode/cl_equip.lua:44: bad argument #1 to 'insert' (table expected, got nil)
1. insert - [C]:-1
2. GetEquipmentForRole - gamemodes/terrortown/gamemode/cl_equip.lua:44
3. unknown - gamemodes/terrortown/gamemode/cl_equip.lua:218
4. unknown - lua/includes/modules/concommand.lua:54
Picture of what it looks like
[IMG]http://i.imgur.com/ZtBDp7w.png[/IMG]
In your cl_equip, on line 44, check if tbl[r] exists before inserting it. If you want to get to the root of the issue, reinstall TTT and make sure the addons you have are registering custom equipment correctly.
[QUOTE=code_gs;51118903]In your cl_equip, on line 44, check if tbl[r] exists before inserting it. If you want to get to the root of the issue, reinstall TTT and make sure the addons you have are registering custom equipment correctly.[/QUOTE]
Pic of line 44
[IMG]http://i.imgur.com/8053QrM.png[/IMG]
If i give up where can i reinstall TTT? I tried using the TTT website but i dident find shit there hosting site is down :6
From the same place I linked you: [url]https://github.com/garrynewman/garrysmod[/url]
[QUOTE=code_gs;51119400]From the same place I linked you: [url]https://github.com/garrynewman/garrysmod[/url][/QUOTE]
After i reinstalled TTT the error still happens.
A simple look at the error revels that it's 99% one of your weapons causing the problem.
Specifically, one of the weapons has a non existent team/role in their CanBuy field.
[editline]28th September 2016[/editline]
Someone probably should PR a safeguard against this, a simple validity check.
Sorry, you need to Log In to post a reply to this thread.