Can anyone tell me what is wrong with this code? Again.

Recommended Posts

Hi all,

Slowly getting to grips with using LINDA for custom actions with switches etc but still having a problem getting my head into reading Lvars and getting returned values to trigger other things like a sound etc.

I think I know enough to know that the code below is wrong but it would help me enormously if someone could correct it. This would lead me onto a greater use of LINDA, even if it just helps the penny to drop.

I have a module file that works well for switches but somehow, I have it in my head that this sort of code should be in the 'user' file and so that is where I have put this...

-- Fuel Alarm --
function Fuel_Alarm()
if ftq<=(30) then

Thanks in advance,


Share this post

Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Thanks Nuno Pinto for the suggestion. Unfortunately, it hasn't fixed it. I'm thinking that maybe this function should be under one of my switch functions, like the battery on/off function in the actions file.

I'll try that.


Share this post

Link to post
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