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

How i can use arrays in config?

Discussion in 'Facepalm' started by xXiKhalediXx, Aug 29, 2017.

  1. xXiKhalediXx

    xXiKhalediXx Spider

    Messages:
    8
    GitHub:
    Khaled098
    Hello There,
    i want to know how i can use arrays in config? thanks
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    just set one as an array
     
  3. xXiKhalediXx

    xXiKhalediXx Spider

    Messages:
    8
    GitHub:
    Khaled098
    how??!
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    just set the config value normally as how you would set it to something
    but now set it as an array
    (if you dont get this then good luck, see class Config)
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    The question should be "Why do you want to know how to use arrays in a config?".
     
  6. xXiKhalediXx

    xXiKhalediXx Spider

    Messages:
    8
    GitHub:
    Khaled098
    I want to make arenas for minigames!
     
  7. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    $a = array("c", "b");
    $config->set(" a", $a);
     
  8. xXiKhalediXx

    xXiKhalediXx Spider

    Messages:
    8
    GitHub:
    Khaled098
    Thanks Dude
     
  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.