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

Update query

Discussion in 'Development' started by LucGamesDE, May 7, 2017.

  1. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    I know there is a Query Event to change query data. But how can I change the query data every second using a Repeatingtask?
     
  2. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Use event instead, Query regenerate event updates everytime (Correct me if I'm wrong)
     
  3. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    For example the player count only updates if a player joins or leaves
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Store your result from your repeating task somewhere internally and apply it when QueryRegenerateEvent is called.
     
  5. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    Thats what I do at the moment. But I want to update it every second
     
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    You mean you want the clients to reload it every second? I don't think this is possible.
     
  7. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    No. I want to set the max player count to a new number on cmd for example
     
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Then what's wrong with this answer?
     
    jasonwynn10 and corytortoise like this.
  9. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    This only updates if for example a player joins. But I want to update it when I want
     
  10. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    then good luck shouting things when there's no one there asking for you to shout things
     
  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.