cellular55 Posted August 20, 2021 Report Posted August 20, 2021 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
Pete Dowson Posted August 20, 2021 Report Posted August 20, 2021 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
spokes2112 Posted August 20, 2021 Report Posted August 20, 2021 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
cellular55 Posted August 20, 2021 Author Report Posted August 20, 2021 HI, thnaks for the inputs... yes.. the issue was caused by a wrong type of double quotes... writing the statement with the right quotes everything is fine now. KR Joe 1
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