Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

public $players = array();?

Comments in 'Plugin Development' started by Legoboy0215, Jul 22, 2015.

Thread Status:
Not open for further replies.
  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I did this before onEnable:
    PHP:
    public $players = array();
    Then I wrote this onEnable:
    PHP:
    $this->players $players;
    But it said undefined var $players. WHY???
  2. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
Thread Status:
Not open for further replies.

Share This Page

Advertisement