1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Tasks

Discussion in 'Development' started by Teamblocket, Oct 15, 2017.

  1. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    How can i start more then one task using scheduleRepeatingTask()? I only want to use the function once.
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Is this like a homework question or something? I simply can't understand why you want to do that.
    PHP:
    call_user_func(function(){$this->getServer()->getScheduler()->scheduleRepeatingTask($task11);$this->getServer()->getScheduler()->scheduleRepeatingTask($task21);});
    Yay only function call :)
     
  3. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    :eek::eek:
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.