• Fixing a few errors
    3 replies, posted
Hey guys, i just need some help with some errors Error 1: [ERROR] gamemodes/gdr/gamemode/cl_scoreboard.lua:158: attempt to call method 'IsDev' (a nil value) 1. unknown - gamemodes/gdr/gamemode/cl_scoreboard.lua:158 The line: if ( self.Player:IsDev() ) then That spams console when i press tab Error 2: [ERROR] gamemodes/gdr/gamemode/shared.lua:24: ')' expected near 'UNNER' 1. unknown - gamemodes/gdr/gamemode/shared.lua:0 The line: team.SetUp( TEAMdebug.getregistry()UNNER, "Runner", Color( 50, 50, 255, 255 ), false ) Error 3: [ERROR] gamemodes/gdr/gamemode/cl_init.lua:70: attempt to index global 'GAMEMODE' (a nil value) 1. unknown - gamemodes/gdr/gamemode/cl_init.lua:70 The line: "Welcome to "..(GM and GM.Name or GAMEMODE.Name).."!", And thats all thanks to any one who can help :)
1. The function registry.Player.IsDev is a nil function. meaning, no one ever put function ply:IsDev() in your code. 2. Change TEAMdebug.getregistry()UNNER to TEAM_RUNNER. Someone replaced all _R's with debug.getregistry() to format for gmod13, and missed this typo. 3. "Welcome to "..(GM and GM.Name or "Your gamemode name here").."!"
[QUOTE=JustSoFaded;38470755]1. The function registry.Player.IsDev is a nil function. meaning, no one ever put function ply:IsDev() in your code. 2. Change TEAMdebug.getregistry()UNNER to TEAM_RUNNER. Someone replaced all _R's with debug.getregistry() to format for gmod13, and missed this typo. 3. "Welcome to "..(GM and GM.Name or "Your gamemode name here").."!"[/QUOTE] I dont get number 2 and number 1
Number 2: Replace it with [lua]team.SetUp( TEAM_RUNNER, "Runner", Color( 50, 50, 255, 255 ), false )[/lua] Number 1: Assuming someone edited it (seeing how they replaced _R in the runner team), they probably broke something and you're not giving the code they broke. Replace your shared.lua with the gamemode's default shared.lua, and at the top of it put this: [lua]_R = _R or debug.getregistry()[/lua] Then again, if you do what I said for number 1, you shouldn't need to do what I said for number 2.
Sorry, you need to Log In to post a reply to this thread.