Jump to content
Tonka

Function already registered for timers

Recommended Posts

Picking up X-Plane development again after a long hiatus.

When trying to initialise a timer in a script I get the error "function already registered for timers".

I see this error when using the following

timer.newTimer("TimerNew" , 1)

I see that a similar error was being reported for the IXEG 737 a while ago.

Does anyone know what causes this issue please?

I have no other timers in my scripts, and I've tried a variety of timer names.

Cheers.

Share this post


Link to post
Share on other sites

Solved:

I was initialising the Timer in the main() flight loop, so the Timer was being initialised every loop, hence the "function already registered" error. 

 

Share this post


Link to post
Share on other sites
On 6/10/2018 at 9:34 PM, Tonka said:

Solved:

I was initialising the Timer in the main() flight loop, so the Timer was being initialised every loop, hence the "function already registered" error. 

 

If you don't mind, could you post an example?

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×