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

error

Discussion in 'Development' started by sdsd16, Mar 9, 2019.

  1. sdsd16

    sdsd16 Spider Jockey

    Messages:
    41
    GitHub:
    Danding1314
    case "menu":
    $sender->getInventory()->(new Item(347, 0, 1)->setCustomName("§l§6Sell"));
    $sender->getInventory()->(new Item(345, 0, 1)->setCustomName("§l§dShop"));
    $sender->addTitle("Succeffful!");
    return true;
    break;

    [21:22:02] [Server thread/CRITICAL]: ParseError: "syntax error, unexpected '(', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'" (EXCEPTION) in "plugins/SEXDCore_SB/src/xinghao2003/SEXDCore/Main" at line 253
     
  2. KielKing

    KielKing Zombie

    Messages:
    245
    GitHub:
    kielking
    PHP:
            case "menu":
                    
    $sender->getInventory()->addItem((new Item(34701)->setCustomName("§l§6Sell")));
                    
    $sender->getInventory()->addItem((new Item(34501)->setCustomName("§l§dShop")));              
                    
    $sender->addTitle("Succefful");
                    return 
    true;
     
    sdsd16 likes this.
  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.