Jump to content
The simFlight Network Forums

Strange issue in LUA


Recommended Posts

HI,

 

hope that someone can help me with a strange issue I'm finding in a LUA file I'm doing.

At these specific lines:

event.key(119,3,"APUON”)

event.button("H",21,1,“IRSON”)

I get in the FSUIPC log the following error message:

*** LUA Error: E:\FSUIPC6\FSLAB1.lua:92: unexpected symbol near 'â'

This happens for each line where i put the event.key or even.button calls.

Any idea about which could be the problem? Overall that character is not part of the lines

Thanks in advance and KR

Joe

 

Link to comment
Share on other sites

Please also supply the actual Lua file. How can we possibly help otherwise? For instance, what is on line 92, as that is where the error is.

10 minutes ago, cellular55 said:

Any idea about which could be the problem? Overall that character is not part of the lines

It looks like a bad character somewhere. I can check the file (view it in Hexadecimal) if you attach it. I can't help blind.

Pete

 

Link to comment
Share on other sites

24 minutes ago, Pete Dowson said:

It looks like a bad character somewhere.

Specially if the code snippet is copied directly from the lua library .pdf, then modified for your use.  
In a lot of cases ( not all ) the quote symbols used are of a MS Word type ( forward & reversed pairs ), not plain text type. That will trip up the lua.
Just checked the v4 version of the lua library pdf, and sure enough - reverse paired quotes.
OFC, attach the lua so it can be looked at.  

Roman
 

 

Link to comment
Share on other sites

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.