Unexpected symbol near ''

killmeplease

Mk Z on Steam
Joined
Nov 22, 2007
Messages
2,795
Location
Samara
This error has halted my modding. I've wasted 2 days trying to deal with it. But have no success yet.

Please help!
WTH is this :confused:
 

Attachments

  • error.jpg
    error.jpg
    128.6 KB · Views: 300
In one of your files, in the very first line, there's an unknown character.
 
In one of your files, in the very first line, there's an unknown character.
the firs line is a comment. i also tried to delete first lines and all the stuff except one function, and even create a new file and retype the code, but it keeps showing that error.
when i remove file from project all goes well. but this is not a solution really :)
file attached.
 

Attachments

Are you using some other editor than the standard Lua editor in ModBuddy? Because, given the stated location and the fact it's there even if you remove the existing first line, it sounds like it could be a UTF-8 BOM (byte-order mark), and the Lua interpreter is choking on it for some reason. What character set support does the Lua interpreter have, anyway?
 
Does your script include any characters that would be multibyte in UTF-8? Or, to be easier to answer, does it contain any non-ascii characters (for example, non-$ currency symbols, accented letters, cyrillic or greek letters, oriental characters)? Try removing those and keeping to 7-bit ascii characters.
 
Back
Top Bottom