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

Solved Why i cant use item::get() ?

Discussion in 'Development' started by NapolGamer TH, Oct 26, 2018.

  1. NapolGamer TH

    NapolGamer TH Silverfish

    Messages:
    15
    GitHub:
    napolgamerth
    I cant use this
    ================
    $item = Item::get($this->id, $this->meta, $count);
    $sender->getInventory()->addItem($item);
    ================
    When i add item more than 10 items it get error!
     

    Attached Files:

  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    PHP:
    $item Item::get($this->id$this->meta, (int) $count);
    $sender->getInventory()->addItem($item);
    The count will be probably false. Do what I said and the code would not drop the same error, or it would get fixed.
     
  3. NapolGamer TH

    NapolGamer TH Silverfish

    Messages:
    15
    GitHub:
    napolgamerth
    Thank you !
     
  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.