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

Help please

Discussion in 'Plugin Help' started by Mochi, May 23, 2020.

  1. Mochi

    Mochi Baby Zombie

    Messages:
    113
    ErrorException: "Use of undefined constant D - assumed 'D' (this will throw an Error in a future version of PHP)" (EXCEPTION) in "plugins/Svile/src/svile/sw/SWmain" at line 193


    Code:
    PHP:
        function OnlineBarWorld(){
            foreach(
    $this->getServer()->getOnlinePlayers() as $p){
                if(
    $p->getLevel()->getFolderName() == 'lobby'){
                    
    $online count($this->getServer()->getOnlinePlayers());
                    
    $money $this->economy132->myMoney($p->getName());
                    
    $kill $this->cfg2->get($p->getName());
                    
    $win $this->cfg1->get($p->getName());
                    
    $game $this->cfg3->get($p->getName());
                    
    $nickname strtolower($p->getName());
                    
    $space str_repeat(" "75);
                    
    $p->sendTip($space ."     §a>> §eHUYTER §a<<\n\n"$space ."§fPlayer: §c{$online}\n"$space ."§fMoney: §c{$money}\n\n"$space ."§fKills: §c{$kill}\n"$space ."§fsouls:§a "."§r\n"$t ."§fwin: §a{$win}\n"$space ."§fGame: §c{$game}\n"$space ."§fshop.Test.ru\n".  str_repeat("\n"13));
                }
            }
        }
     
  2. Seeker

    Seeker Spider Jockey

    Messages:
    45
    GitHub:
    seeker-devs
    line 193?
    [EDIT]
    considering this as line 193
    PHP:
        $p->sendTip($space ."     §a>> §eHUYTER §a<<\n\n"$space ."§fPlayer: §c{$online}\n"$space ."§fMoney: §c{$money}\n\n"$space ."§fKills: §c{$kill}\n"$space ."§fsouls:§a "."§r\n"$t ."§fwin: §a{$win}\n"$space ."§fGame: §c{$game}\n"$space ."§fshop.Test.ru\n".  str_repeat("\n"13));
                }
    read the error. constant D is not defined. what are you using "D" for anyways... i suggest using vars
     
  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.