• Error unexpected symbol near '='
    7 replies, posted
I started scripting with lua a month ago and I have run into this issue before and it frustrates me because I have no clue how to fix it I've tried every which way and have been searching the internet for about 3 hours now trying to find a fix but nothing, probably because it's something simple. But I don't know, so I'll show you all a chunk of my script in hopes you will have an idea to solve it [url]http://puu.sh/linwV/5cfd3f30ba.png[/url]. The error lies at "SWEP.Primary.Damage = -1" and whenever I remove the line and save, it just says the same exact thing for the next line, "Error unexpected symbol near '='. Thanks.
Can you post an actual error?
Can you help maybe?
[QUOTE=Jesse 91;49099726]Can you help maybe?[/QUOTE] We can't possibly know unless you post the actual code. Also posting the full error message would also be helpful.
[QUOTE=boxvader;49099746]We can't possibly know unless you post the actual code. Also posting the full error message would also be helpful.[/QUOTE] Thanks, I didn't really understand what he meant by actual error, I just removed it but I've still got the files. [url]http://pastebin.com/3zwzFBes[/url] and heres the error [url]http://puu.sh/lipYM/8ba6124716.png[/url]
You have nothing after WeaponSelectIcon =
In the future don't just look at the line given to you by the error. The line isn't always accurate the complir tries to approximate the location of the error and doesn't always get it spot on. Make sure to look at all of the lines around the one it gives you.
tyty luv u forever. I em retart.
Sorry, you need to Log In to post a reply to this thread.