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

Help me please

Discussion in 'Plugin Help' started by DemureTitan, Jan 26, 2019.

  1. DemureTitan

    DemureTitan Creeper

    Messages:
    4
    $vipepin = $this->cfg->get("VIP");
    $vipepin->remove($args[1]);
    Error: call to a member function remove() on array

    Help me please
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    1. Wrong place to post that, please use development (admins and owner be fair! I have been warned 2-3 times for that)
    2. $vippin in an array, it's like trying []::set()
    3. Try that:
    PHP:
    $vipepin $this->cfg->get("VIP");
    unset(
    $vipepin[$args[1]]);
    $this->cfg->set("VIP"$vipepin);
    $this->cfg->save();
     
  3. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    corytortoise likes 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.