Jump to content

Lua program error.


Montis.

Recommended Posts

Posted

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?

Posted

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

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

Posted
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

Posted
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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...