Lua errors in console for scripts that have perfect syntax
20 replies, posted
I have two scripts on I KNOW works the other one I checked with a syntax checker and it worked fine, im getting the same error for both:
:1: "=" expected after '<I forgot what was hear, I will insert it later>'
please note that "I forgot what was hear, I will insert it later" is not part of the error (it is just a placeholder)
Note: i just installed stargate svn could that have anything to do with it?
Edit:
it doesnt do it when I am at the menu wich is wered...
Anyhow here is the console dump:
:1: '=' expected near '<eof>'
We can't do jack shit unless you give us the WHOLE error by copying it from the console and pasting it here, and the WHOLE of the file mentioned in the error or at least all of the related code.
No, The script worked before and now...
[QUOTE=(AMS-$)ILOVEPIE;18337180]No, The script worked before and now...[/QUOTE]
And now it obviously has a syntax error in it. So you should paste us the whole error as well as the block of code in which it is happening. Make sure to specify which line the error is originating from.
I think It is a disagreement with global variables in the script and the svn version of stargate... could that be the problem?
Just post the damn script. We can't help you if you're going to be stingy. Chances are, nobody even wants your script.
why not just post the error?
I WILL POST THE ERROR! sheesh!
[QUOTE=(AMS-$)ILOVEPIE;18337329]I think It is a disagreement with global variables in the script and the svn version of stargate... could that be the problem?[/QUOTE]
That kind of error can't be anything else then a syntax error.
Don't forget Garry's Mod uses an unique implementation of Lua so a regular syntax checker might let some things skip by.
[QUOTE=(AMS-$)ILOVEPIE;18337389]I WILL POST THE ERROR! sheesh![/QUOTE]
And the whole code. We still can't do anything with an error unless you give us code.
Don't act like we're being annoying, it's you who didn't post the common-sense required material.
Oh and be sure to post it inside [lua] tags.
Why did you bother posting without posting the error or the code? With neither, we have no chance of helping.
*Post deleted for rabid tosters protection*
Jesus man, you can't expect us to debug that for you? That's your job.
[QUOTE=Entoros;18341024]Jesus man, you can't expect us to debug that for you? That's your job.[/QUOTE]
I AM A NEWB i cant debug!
anyway console dump:
:1: '=' expected near '<eof>'
Stop using cheats in Garry's Mod, aside from that, you've got to be kidding if you want us to debug that. That's just idiotic.
/thread
[editline]04:50PM[/editline]
I read the code. That's a damn clever way of protecting those hooks.
[editline]04:51PM[/editline]
Oh wait. concommand.Remove. :lol:
We can't debug a code that huge without being very familiar with it to begin with. Presumably the original code was working at first. Unless you can post the specific bits you changed to bugger it up you're on your own.
[QUOTE=MegaJohnny;18341909]We can't debug a code that huge without being very familiar with it to begin with. Presumably the original code was working at first. Unless you can post the specific bits you changed to bugger it up you're on your own.[/QUOTE]
I did not change anything...
I have a second script that does the same error that wrote myself...
[QUOTE=CptFuzzies;18341430]Stop using cheats in Garry's Mod, aside from that, you've got to be kidding if you want us to debug that. That's just idiotic.
/thread
[editline]04:50PM[/editline]
I read the code. That's a damn clever way of protecting those hooks.
[editline]04:51PM[/editline]
Oh wait. concommand.Remove. :lol:[/QUOTE]
The hook protection doesn't work. Proven by my basic anticheat :3
[code]06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook VffBfDH(HUDPaint)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook eDDLCr(TargetPrediction)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook tmtr(CalcView)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook PCMod.SDraw.GarbageCollect(Think)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook HcDdAeD(TargetLost)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook tJaM(CVar_aa_enabled)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook JMmCJtfqfg(TargetGained)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook KbcbWmMP(CreateMove)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook naPTEjfG(Shutdown)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook ebHUjJS(OnToggled)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook VffBfDH(HUDPaint)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook eDDLCr(TargetPrediction)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook tmtr(CalcView)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook HcDdAeD(TargetLost)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook tJaM(CVar_aa_enabled)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook JMmCJtfqfg(TargetGained)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook KbcbWmMP(CreateMove)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook naPTEjfG(Shutdown)
06/29/09 21:33:02|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook ebHUjJS(OnToggled)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook VffBfDH(HUDPaint)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook eDDLCr(TargetPrediction)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook tmtr(CalcView)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook HcDdAeD(TargetLost)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook tJaM(CVar_aa_enabled)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook JMmCJtfqfg(TargetGained)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook KbcbWmMP(CreateMove)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook naPTEjfG(Shutdown)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook ebHUjJS(OnToggled)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook VffBfDH(HUDPaint)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook eDDLCr(TargetPrediction)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook tmtr(CalcView)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook HcDdAeD(TargetLost)
06/29/09 21:33:03|STEAM_0:0:20037521|xx.xxx.xxx.xx:27005|Player jarongame was using the hook tJaM(CVar_aa_enabled)[/code]
[QUOTE=(AMS-$)ILOVEPIE;18351528]I did not change anything...
I have a second script that does the same error that wrote myself...[/QUOTE]
Then you know who made the code and you know you didn't change it... Why not just contact RabidToaster and ask him for help?
Sorry, you need to Log In to post a reply to this thread.