Results 1 to 4 of 4

Thread: ".Ini" Question

  1. #1
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ".Ini" Question

    Hey guys,
    It's me again, trying to get my new chicken killer to work. The form (which is uber 1337 btw ) works fine now, BUT the saving is an issue...
    When saving information to a .Ini file, it always ADDS to the file, meaning that when it reads the file, it will only see the first which comes up... How can I fix that? (for example, by overwriting an entire .ini file, or by making the script delete it before saving again, etc.)
    I tried looking around the SRL-Manual, but without too much succes...
    Thanks a lot,
    Pure1993
    There is nothing right in my left brain and there is nothing left in my right brain.

  2. #2
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, INI file functions are not in SRL.

    And what do you mean? When reading you basically just read a key from a section. All keys can be distinguished from each other by the section name, regardless of if there are multiple keys with the same name in different sections.

    Get on MSN and I will try to help you .

  3. #3
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    PHP Code:
    procedure DeleteINI(SectionKeyNameFileNamestring);
    Deletes a KeyName from an INI file and if you pass an empty string as KeyName it will delete then entire Section
    ???

  4. #4
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, I know, I already fixed it before posting, but I saved it as a new .scar file under a new location, and when I checked the .Ini file, it was the wrong one... I'm such a noob...
    Anyway, thanks to kyle (Da Owner) for testing, and thanks for your answer as well.
    There is nothing right in my left brain and there is nothing left in my right brain.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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