• dermaskin help
    6 replies, posted
Hey, I need some help. In console it says this error: [code]gamemodes/GModRP/gamemode/derma/cl_dermaskin.lua:42: 'end' expected (to close 'function' at line 40) near 'else' -- Error PARSING CLIENTSIDE file ------------------------- - File: GModRP/gamemode/derma/cl_dermaskin.lua ----------------------------------------------------------[/code] Heres the code: [code] hook.Add( "Think", "ApplyPBDermaSkin", function() else hook.Remove( "Think", "ApplyPBDermaSkin" ) end end )[/code]
That's only half an if condition :downs:
[QUOTE=_nonSENSE;24663936]That's only half an if condition :downs:[/QUOTE] lol no if statement, why didn't I see that :) EDIT: if I add a "if" statement it still says same error. Where shall I place it? Code: [code] if hook.Add( "Think", "ApplyPBDermaSkin", function() else hook.Remove( "Think", "ApplyPBDermaSkin" ) end end )[/code]
It would help if you explained to us what you were trying to do.
[QUOTE=_nonSENSE;24664247]It would help if you explained to us what you were trying to do.[/QUOTE] Thats what I don't know xD I'm just trying to fix the bugs for GmodRP Reloaded.
[lua] hook.Add( "Think", "ApplyPBDermaSkin", function() if //Conditional goes here else //If the conditional isn't met then... hook.Remove( "Think", "ApplyPBDermaSkin" ) end end )[/lua] I would advise you read [url]www.lua.org/pil[/url] to understand the usage of the syntax etc.
[QUOTE=Teddi Orange;24664401][lua] hook.Add( "Think", "ApplyPBDermaSkin", function() if //Conditional goes here else //If the conditional isn't met then... hook.Remove( "Think", "ApplyPBDermaSkin" ) end end )[/lua] I would advise you read [url]www.lua.org/pil[/url] to understand the usage of the syntax etc.[/QUOTE] Thanks, I really don't see what the creator wants with this script :/
Sorry, you need to Log In to post a reply to this thread.