Results 1 to 3 of 3

Thread: Big problem with getsetting()!

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Big problem with getsetting()!

    string getsetting(string settingpath) - Anyone know how to use it?

    I used it to:

    _cavebot = "no"
    _cavebot = getsetting("Settings/CaveBot/Enabled")

    but its give allweys NIL.

    Looking for any help!

  2. #2
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    REP+ if I helped you

    local cavebot = getsettings("Settings/CaveBot/Enabled")

    if cavebot == 'no' then
    what to do here
    else
    what to do here
    end
    wait(500)

  3. #3
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by baterflu View Post
    string getsetting(string settingpath) - Anyone know how to use it?

    I used it to:

    _cavebot = "no"
    _cavebot = getsetting("Settings/CaveBot/Enabled")

    but its give allweys NIL.

    Looking for any help!
    PHP Code:
    setsettings("Settings\\CaveBot\\Enabled","yes"
    setsettings("Settings\\CaveBot\\Enabled","no"
    Why would you ever need getsetting?
    Last edited by pink_panther; 07-04-2012 at 10:57 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •