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

Whats wrong?!?

Comments in 'Plugin Development' started by JackboyPlay, Apr 17, 2016.

  1. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    PHP:
    $random array_rand($this->getOwner()->battle12); 
    unset(
    $this->battle2[$random[0]]);
    unset(
    $this->battle2[$random[1]]);
    $this->getOwner()->zombie2 $random[0];
    $this->getOwner()->zombie2 $random[1];
    Why does that not work?
    PS: Its in a task and the array works and so
  2. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
  3. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
  4. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    PHP:
    $random $this->getOwner()->battle1[array_rand($this->getOwner()->battle12)];
    Nawaf_Craft1b and JackboyPlay like this.
  5. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay

Share This Page

Advertisement