Montis. Posted January 18, 2012 Share Posted January 18, 2012 Any script to compile I get an error. Syntax Error at line -1:...hmatch/resource-cache/unzipped/tdma/scoreboard/tdma_scoreboar d_stats.lua1:unexpected symbol near '?' What i need to do? Link to comment
Maurize Posted January 18, 2012 Share Posted January 18, 2012 this means the system is unable to read resource / script. you have to convert it tu utf8 i think, then it should work. otherwise open the script and watch out for strange symbols;) Link to comment
Castillo Posted January 18, 2012 Share Posted January 18, 2012 You can't compile a script that is enconded with UTF-8, you must change the encoding to UTF-8 without BOM. Link to comment
Montis. Posted January 21, 2012 Author Share Posted January 21, 2012 You can't compile a script that is enconded with UTF-8, you must change the encoding to UTF-8 without BOM. Ok I changed UTF-8 in UTF-8 without BOM with notepad++ program and i compile the script with lua program and i get error: Runtime Error at line -1:...amemodes]/[tdm]/scoreboard/tdma_scoreboard_stats.lua:37: attempt to call global 'getThisSource'(a nil value) Link to comment
Castillo Posted January 21, 2012 Share Posted January 21, 2012 To be able to compile a script it must have no errors, debug your script before try to compile it. Link to comment
Montis. Posted January 22, 2012 Author Share Posted January 22, 2012 To be able to compile a script it must have no errors, debug your script before try to compile it. How can i debug srcipt? I know i can compile with f5 but how debug script? Sorry for my bad english ;D Link to comment
Castillo Posted January 22, 2012 Share Posted January 22, 2012 Just start the script in your server and test it, if it has no errors, then compile it. Link to comment
Sparrow Posted January 22, 2012 Share Posted January 22, 2012 To be able to compile a script it must have no errors, debug your script before try to compile it. How can i debug srcipt? I know i can compile with f5 but how debug script? Sorry for my bad english ;D type /debugscript 3 you'll found the errors in screen. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now