ImventoryTransaction

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

  1. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

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

    DaPigGuy Witch

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

    xXNiceAssassinlo YT Zombie Pigman

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

    DaPigGuy Witch

    Messages:
    71
    GitHub:
    DaPigGuy
    :facepalm: You are trying to do getInventory() on an array
     
    iiFlamiinBlaze likes this.
  5. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    681
    GitHub:
    xXNiceYT
    Oh lmao
     

Share This Page

  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.