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

Send Loading screen when doing /hub

Discussion in 'Development' started by Harviy11, Nov 15, 2016.

  1. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Don't put the space before the ], it was just used by @Blabla so it doesn't show the codeblock (even tough he could've used [PLAIN])..
    Do it like this:
    [PHP]Your code[/PHP]
     
  2. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
    ok but i want help with the code
     
  3. imYannic

    imYannic Baby Zombie

    Messages:
    113
    Since Level::getDimension() doesn't exist in PocketMine, use the integer 0 instead.
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Use [plain] tags so that you don't have to add those spaces :joy:
     
  5. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Don't use static :: for non-static functions, even if you are just trying to say it. Just say Level->getDimension() instead.
     
    Last edited: Nov 18, 2016
  6. imYannic

    imYannic Baby Zombie

    Messages:
    113
    I see no difference with $exampleLevel->getDimension(), I use static functions as example.
     
  7. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    Players get stuck on the Building Terrain Screen
     
  8. falk

    falk Slime Poggit Reviewer

    Messages:
    75
    GitHub:
    falkirks
    Just FYI: There is nothing wrong with using static calls for function reference info. You don't have an object of the type to work with. It would be syntactically worse to do $blah->getDimension() because $blah isn't defined and thus we have no idea what type of data we are operating on. Yes, yes, you could do "$blah = new Level(); $blah->getDimension()", but that's just a bit too verbose :p
     
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    `new Level()` is even more wrong ;) why not use `unserialize('O:22:"pocketmine\level\Level":0:{}')`? But that would make getDimension() return null. Wait... Does that method even exist?
     
  10. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    I just say you should/can say
    Level->blah()
    instead of
    Level::blah()
     
    HimbeersaftLP likes this.
  11. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    It is actually valid to call Level::blah() if you are in the Level scope or the scope of its subclass.
     
    Muqsit, imYannic and HimbeersaftLP like this.
  12. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    So much Blah here... xD
     
  13. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
    ._. i do not understand! send me code how do this:D
     
  14. imYannic

    imYannic Baby Zombie

    Messages:
    113
    Do you use a fork? On the fork *lyw*ng it happens that you are getting stuck in loading screen.
     
  15. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
    no, i do not know how to change src to .phar file
     
  16. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    :facepalm:
     
    HimbeersaftLP likes this.
  17. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Please use
    Code:
     [PHP] [/PHP] 
    and not [PHP ]
     
  18. gistrec

    gistrec Witch

    Messages:
    68
    GitHub:
    gistrec
    UP
     
  19. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    what the point anyways in the first place?
    it is kinda just more of for show then for usage right?
     
    gistrec likes this.
  20. Bluplayz

    Bluplayz Spider Jockey

    Messages:
    43
    GitHub:
    bluplayz

    not [PHP ] you MUST remove the empty char xD
     
  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.