• Quick Lua Fix please!
    1 replies, posted
Just need this fixed, ASAP. [CODE] [ERROR] gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:638: No members in the demote group! 1. error - [C]:-1 2. createDemoteGroup - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:638 3. unknown - addons/darkrpmodification/lua/darkrp_customthings/demotegroups.lua:14 4. include - [C]:-1 5. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:111 6. fn - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:119 7. Call - addons/ulib/lua/ulib/shared/hook.lua:183 8. unknown - lua/includes/modules/gamemode.lua:35 [/CODE] Here are my demote groups: [CODE]DarkRP.createDemoteGroup("Mafia", {TEAM_GODFATHER, TEAM_MAFIA}) DarkRP.createDemoteGroup("Gangsters", {TEAM_GANGLEADER, TEAM_GANGSTER}) DarkRP.createDemoteGroup("Police", {TEAM_CHIEF, TEAM_POLICE, TEAM_SWAT}) DarkRP.createDemoteGroup("Taliban", {TEAM_TALIBAN1, TEAM_TALIBAN2, TEAM_TALIBAN3, TEAM_TALIBAN4})[/CODE]
Here's the DarkRP help thread; also it's hard to know what the issue is when the title doesn't tell us. [url]http://facepunch.com/showthread.php?t=1249475[/url] According to your code: [url]http://wiki.darkrp.com/index.php/Functions/darkrp/shared/createdemotegroup[/url] it looks right assuming all of those teams exist. Do you have 4 taliban teams? You're getting the error because one of the tables values are all nil. A way to solve this is to try printing each element in the tables to see if they return nil. To recap: The error means all elements in one of the tables ( or more ) on one line are all unset.
Sorry, you need to Log In to post a reply to this thread.