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

FloatingTextParticle bug

Discussion in 'Development' started by SergeyIvanov, Nov 21, 2016.

  1. SergeyIvanov

    SergeyIvanov Witch

    Messages:
    59
    GitHub:
    sergeyivanov14
    When I create a fisrt test other in normal, when I create second text first text deleted, help me please. I use many codes but don't work, I use many versions of Genisyss but don't work. What is problem?
     
    Reid likes this.
  2. Ragnok123

    Ragnok123 Silverfish

    Messages:
    22
    GitHub:
    Ragnok123
    Code here. We dont know, what bug you're descripting.
    Давай сюда просто код. Мы хз, что у тебя за ошибка, раз нихуя не даешь код.
     
    gistrec likes this.
  3. SergeyIvanov

    SergeyIvanov Witch

    Messages:
    59
    GitHub:
    sergeyivanov14
    public function onText(PlayerInteractEvent $e){
    $p = $e->getPlayer();
    if($e->getItem()->getId() == 264){
    $this->getServer()->getDefaultLevel()->addParticle(new FloatingTextParticle(new Vector3(128, 5 + 2, 128), "", "text"), [$e->getPlayer()]);
    $this->getServer()->getDefaultLevel()->addParticle(new FloatingTextParticle(new Vector3(128, 5 + 1.75, 128), "", "text2"), [$e->getPlayer()]);
    $this->getServer()->getDefaultLevel()->addParticle(new FloatingTextParticle(new Vector3(128, 5 + 1.50, 128), "", "text3"), [$e->getPlayer()]);
    }
    }

    Ошибки нету, я пробовал много способов для создания все с этой ошибкой и только на 0.16
     
  4. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
    speak czech/english please :D
     
  5. ByZikenPE

    ByZikenPE Creeper

    Messages:
    2
    I did it with 2 plugin cause I got the same problème, I duplicate my plugin for get 2

    FloatingTextFaction
    FloatingTextHub
     
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Might it be that the particles are too close by?
     
  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.