Hello I have an error PHP: Warning: Invalid argument supplied for foreach() in /root/benhosting/plugins/QSG/src/JackboyPlay/QuickSG/Main.php on line 646 Line 646 PHP: $map2 = array();646 foreach($this->getOwner()->map2 as $name1 => $player){647 $player->sendPopup("§eStart in §a" . $this->map2zeit . " §eSekunde[n]");648 }
I'll answer in german to bring this conversation a bit forward. Kannst du mal vor "foreach($this->getOwner()->map2 as $name1 => $player){" das hier machen: var_dump($this->getOwner()->map2); Dann können wir in der Konsole sehen, was für ein typ die Variable hat. Danke!
Please use English in every post in the main forums. If you don't want to use English, use a PM to translate it for an individual.
@PEMapModder PHP: Notice: Undefined property: JackboyPlay\QuickSG\Main::$map2 in /root/benhosting/plugins/QSG/src/JackboyPlay/QuickSG/Main.php on line 646
that means there is no such variable. As long as you don't call the $map2 in a task or so, idk why you should even use getOwner. Try $this->map2