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

Solved MySQL Crash

Discussion in 'Development' started by Kyd, Dec 3, 2017.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    When new player join my server I register him into MySQL Database, but when I try to get something that I registred in same function it return null and throw exception.. But why when It's already saved :/
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    For example I do
    PHP:
    Database::registerPlayer($player->getName());
    and then try to get string that I registred (rank for example)
    PHP:
    $this->getPlayer($p->getName())['rank'];
    It throw error, but when I do it later in another function it works and it works for already registred users too
     
  3. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    Do you even have knowledge in the world of "DATABASE"
     
  4. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Nope
     
  5. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    MySQL Newbie :p
     
  6. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Solved, I just did it in AsyncTask
     
  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.