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

ImventoryTransaction

Discussion in 'Development' started by xXNiceAssassinlo YT, Mar 11, 2018.

  1. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Code:
    PHP:
    $transactions $event->getTransaction()->getActions();
    if((
    $inv $transactions->getInventory()) instanceof Inventory){
    Error:
    PHP:
    Undefined getInventory()
     
  2. DaPigGuy

    DaPigGuy Slime

    Messages:
    86
    GitHub:
    DaPigGuy
    InventoryTransaction::getActions() returns an array.
     
  3. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    I got return it still send same err
     
  4. DaPigGuy

    DaPigGuy Slime

    Messages:
    86
    GitHub:
    DaPigGuy
    :facepalm: You are trying to do getInventory() on an array
     
    Levi and iiFlamiinBlaze like this.
  5. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Oh lmao
     
  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.