Code: [Server thread/NOTICE]: InvalidArgumentException: "Argument 1 passed to pocketmine\level\particle\FloatingTextParticle::__construct() must be an instance of pocketmine\math\Vector3, string given, called in C:\Users\CaptainKenji17\Desktop\PocketMine-MP\plugins\NBS\src\PlayNoteBlockSong\PlayNoteBlockSong.php on line 189 and defined" (E_RECOVERABLE_ERROR) in "/src/pocketmine/level/particle/FloatingTextParticle" PHP: $this->song = clone $this->songs[$this->index][self::SONG]; $vect2 = new Vector3(252, 43, 120); $vect2 = new FloatingTextParticle("§ePlaying now: " . $this->songs[$this->index][self::NAME]); "Learn PHP" are blocked word on this thread, try to say it ill block you
__construct argument 1 should be a instance of Vector3. PHP: new FloatingTextParticle(new Vector3($x,$y,$z), $text); And, I recommend you check how constructors and destructors work, it will be so helpful for you. http://php.net/manual/en/language.oop5.decon.php
[Server thread/CRITICAL]: Unhandled exception executing command 'song play' in song: Undefined variable: x
Ive fixed this error but still it doesnt show the particle ;( PHP: $vect2 = new FloatingTextParticle(new Vector3(252, 43, 120), "§ePlaying now: " . $this->songs[$this->index][self::NAME]);
PHP: $vect2 = new FloatingTextParticle(new Vector3(252, 43, 120), "§ePlaying now: " . $this->songs[$this->index][self::NAME]); [/QUOTE] Where's the Code 2 Spawn the Particle?