• Lua Error: [ERROR] lua/weapons/rg_base/shared.lua:566: ')' expected near '|' NEED HELP!!
    9 replies, posted
Issue resolved.
Linje 566: [lua] if self.Owner:KeyDown(bit.bor(IN_FORWARD, IN_BACK, IN_MOVELEFT, IN_MOVERIGHT)) then [/lua] Next time use lua tags.
[QUOTE=ms333;38945036]Linje 566: [lua] if self.Owner:KeyDown(bit.bor(IN_FORWARD, IN_BACK, IN_MOVELEFT, IN_MOVERIGHT)) then [/lua] Next time use lua tags.[/QUOTE] Is that the code I should use or the code that I should change? I'm still getting the error. Could you help me? EDIT: This is my line 566: if self.Owner:KeyDown(bit.bor(IN_FORWARD, IN_BACK, IN_MOVELEFT, IN_MOVERIGHT)) then
[QUOTE=Mojolicious;38947710]Is that the code I should use or the code that I should change? I'm still getting the error. Could you help me?[/QUOTE] Not to be rude but if you would look at line 566 you would see the difference..
That's the code you should put in on line 566 replacing what is already there.
The code on line 566 is changed to: "if self.Owner:KeyDown(bit.bor(IN_FORWARD, IN_BACK, IN_MOVELEFT, IN_MOVERIGHT)) then" (Used copy/paste on the code from ms333) but I'm still getting this error: [ERROR] lua/weapons/rg_base/shared.lua:566: ')' expected near '|' 1. unknown - lua/weapons/rg_base/shared.lua:0 What am I doing wrong?
did you restart the map?
[QUOTE=Banana Lord.;38948055]did you restart the map?[/QUOTE] I've restarted the server several times but I'm still getting the error. I'm trying to install a custom weapon and the files are put in the /addon folder aswell in the /entities/weapons folder. Could it be because the files are in two seperate locations?
what
Thanks for the help guys! Issue resolved.
Sorry, you need to Log In to post a reply to this thread.