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

Solved Query Not working

Discussion in 'Development' started by xXNiceAssassinlo YT, May 13, 2018.

  1. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    code
    PHP:
        public function onQuery(QueryRegenerateEvent $e){
        
    $facquery Query::queryServer("142.44.217.897"19132);
        
    $hubquery Query::queryServer("142.4.200.939"19132);
        
    $e->setPlayerCount($facquery["online"] + $hubquery["online"]);
        }
    No error
     
    Last edited: May 13, 2018
  2. Miste

    Miste Baby Zombie

    Messages:
    109
    GitHub:
    Misteboss
    I don't know what plugin and what code you are using to query but if you don't have any errors you can var_dump() $facquery["online"] and $hubquery["online"] to see what it gives you
     
    xXNiceAssassinlo YT likes this.
  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.