DrDave- Posted October 29, 2023 Report Share Posted October 29, 2023 Hello again, I keep receiving the following error in the FSUIPC7.log: 105922 *** LUA Error: C:\FSUIPC7\1Sayo-12Keys.lua:62: unexpected symbol near 'â' I can't for the life of me figure out why. Please Help FSUIPC7 Lua Error.pdf FSUIPC7.ini FSUIPC7.log 1Sayo-12Keys.lua Link to comment Share on other sites More sharing options...
ark1320 Posted October 30, 2023 Report Share Posted October 30, 2023 7 hours ago, DrDave- said: I can't for the life of me figure out why. I took a look at your Lua script and think you have the following syntax errors: 1. On Notepad++ lines 62, 66, 83, and 87 the ipc.writeLvar statements like this: ipc.writeLvar(“FSUIPC_C510_Ignition_1", 1) apparently have the wrong type of opening quote character ( a curly quote instead of a straight quote? ) before FSUIPC_. Use the same type of straight quote character as you use for the closing quote after the _1. The similar writeLvar statements on lines 156, 161, 179 and 183 seem to be OK. 2. Line 250: Lua file path syntax requires the statement ipc.runlua("C:\FSUIPC7\2-loglvars.lua") needs to use double back slashes ( \\ ) like this: ipc.runlua("C:\\FSUIPC7\\2-loglvars.lua"). I think a single back slash in Lua is reserved for escape characters. 3. Your local function Check_N1_S1() is missing an end statement. You need one end to close the function, one for the while do , and one for the if statement. Good luck, Al 1 Link to comment Share on other sites More sharing options...
DrDave- Posted October 30, 2023 Author Report Share Posted October 30, 2023 Highly appreciated, thanks Link to comment Share on other sites More sharing options...
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