Sign in to follow this  
Montis.

Lua program error.

Recommended Posts

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?

Share this post


Link to post

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;)

Share this post


Link to post

You can't compile a script that is enconded with UTF-8, you must change the encoding to UTF-8 without BOM.

Share this post


Link to post
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)

Share this post


Link to post

To be able to compile a script it must have no errors, debug your script before try to compile it.

Share this post


Link to post
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

Share this post


Link to post

Just start the script in your server and test it, if it has no errors, then compile it.

Share this post


Link to post
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.

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.