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

Config bug

Discussion in 'Development' started by SergeyIvanov, Oct 15, 2017.

  1. SergeyIvanov

    SergeyIvanov Witch

    Messages:
    59
    GitHub:
    sergeyivanov14
    Code:
    //don't add value to key
    
    $cfg->set("Count", $cfg->get("Count") +1);
    $cfg->save();
    
    $player->sendMessage($cfg->get("Count"));
    
    //add value to Count
    
    $player->sendMessage($cfg->get("Count"));
    
    $cfg->set("Count", $cfg->get("Count") +1);
    $cfg->save();
    When i set in config value and get the value, value don't update.
     
  2. Zayd

    Zayd Witch

    Messages:
    55
    GitHub:
    ZaydPE
    reload the config
     
  3. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    add $cfg->reload();
     
  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.