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

Pos isnt getting defined

Discussion in 'Help' started by esh123cookie, Apr 24, 2020.

  1. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    $pos = new Position((int)round($player->getX()), round((int)$player->getY()), round((int)$player->getZ())); //original

    I need to define $pos which I have done, but for some reason, pocketmine is giving an error.

    error
    \/\/\/\/
    ErrorException: "Undefined variable: pos"
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    The error must come from another part of your code. Can you send more?
     
  3. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    Could you dm me on discord my @ is bigbozzlmao#4035 ill send you paste bin link
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Join the PocketMine community Discord (link is in the forum menu), you can find me on there
     
  5. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    And btw, the forums have a dm feature, too, just click the username or picture of someone and press "Start a Conversation"
     
  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.