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

Solved Some basic help need with correct imports

Discussion in 'Development' started by mm899, May 13, 2019.

  1. mm899

    mm899 Spider Jockey

    Messages:
    32
    Hi guys I have recently just taken some OOP PHP courses, Ive just started working on my PocketMine plugin and ive come across an issue, its probably something simple and stupid but nonetheless any help would be appreciated.
    [​IMG]
    [​IMG]

    if images don't load:
    https://ibb.co/h143Szv
    https://ibb.co/cY3fXx0

    Well it says that a vector3 is expected but whenever I try to import/use it says that its an undefined namespace.
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Do you have pocketmine in your ide as an external library?
     
  3. mm899

    mm899 Spider Jockey

    Messages:
    32
    Yes
     
  4. KielKing

    KielKing Zombie

    Messages:
    245
    GitHub:
    kielking
    the math directory is on another repo, download it and include it in your IDE https://github.com/pmmp/Math
     
    jasonwynn10, Levi and mm899 like this.
  5. mm899

    mm899 Spider Jockey

    Messages:
    32
    Thanks for your help! :)
     
  6. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    I recommend put to phpstorm full PocketMine.phar, it can reads it.
     
    jasonwynn10 and mm899 like 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.