NotAvailable Posted August 6, 2011 Share Posted August 6, 2011 Hello, i have some problems with my compiled scripts, they dont seem to work in MTA 1.1.. This is the error: [Client] is encoded in ANSI instead of UTF-8. Please convert your file to UTRF-8. Could someone help me? Regards, Jesse Link to comment
qaisjp Posted August 6, 2011 Share Posted August 6, 2011 When you are making your scripts, edit np++ to save in UTF-8 (or notepad if u use it) NP++ : ENCODE -> UTF-8 (don't choose UTF-8 without BOM) Notepad: Save as, somewhere in that window there is encoding Link to comment
NotAvailable Posted August 6, 2011 Author Share Posted August 6, 2011 When you are making your scripts, edit np++ to save in UTF-8 (or notepad if u use it)NP++ : ENCODE -> UTF-8 (don't choose UTF-8 without BOM) Notepad: Save as, somewhere in that window there is encoding Thanks, but if i open the encoded script again i see it normal, is that supposed to be happen? Link to comment
NotAvailable Posted August 6, 2011 Author Share Posted August 6, 2011 yes. encode ~= compile But i see the code normal not compiled is that supposed to be happen? Link to comment
qaisjp Posted August 7, 2011 Share Posted August 7, 2011 ENCODE ~= COMPILE ENCODE IS NOT THE SAME AS COMPILE It's supposed to be like that, everything is proper. Link to comment
JR10 Posted August 7, 2011 Share Posted August 7, 2011 So there is no compiling in MTA 1.1? Link to comment
NotAvailable Posted August 7, 2011 Author Share Posted August 7, 2011 So there is no compiling in MTA 1.1? Yes there is, but only UTF-8 format. Link to comment
qaisjp Posted August 8, 2011 Share Posted August 8, 2011 Jezus, what I am trying to say is compiling is not the same as encoding. For example, you can encode a text file (or a lua file in our case) to change the way how it is read ( in this case, 1.1 require UTF-8 FOR ALL SCRIPTS), but compiling our lua, just makes it not readable. Compiling does NOT affect encoding! Encoding changes the way it is read! Compiling makes it illegiblefor the basic thieves. 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