Results 1 to 9 of 9
  1. #1
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251

    Simple Save/Load

    Need:
    Code:
    int WritePrivateProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, int nInteger, LPCTSTR lpFileName)
    {
        TCHAR lpString[10];
        wsprintf( lpString, L"%i", nInteger );
        return WritePrivateProfileString( lpAppName, lpKeyName, lpString, lpFileName );
    }
    Save:
    Code:
    wchar_t a[10];
    for(int i = 1; i < Menus.D3D.Set.NumberOfItems;i++)
    	{
    		wsprintf(a, L"D3D%i",i);
    		WritePrivateProfileInt(L"D3D", a, Menus.D3D.Opt[i].Value, L"Safelist.ini");
    	}
    Load:
    Code:
    wchar_t a[10];
    for(int i = 1; i < Menus.D3D.Set.NumberOfItems;i++)
    	{
    		wsprintf(a, L"D3D%i",i);
    		Menus.D3D.Opt[i].Value = GetPrivateProfileInt(L"D3D", a, Menus.D3D.Opt[i].Value,L"Safelist.ini");
    	}
    Enjoy.
    Creditz: Me,MSDN
    but im 100% sure, im not the first one who made it

    with some skillls(fucking easy) u can safe/load float and double values.
    Last edited by kotentopf; 10-06-2010 at 05:35 PM.
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  2. The Following 4 Users Say Thank You to kotentopf For This Useful Post:

    ᶠᶸᶜᵏ (11-03-2010),DeadLinez (10-06-2010),fvestrgenrl (10-07-2010),tahha (10-07-2010)

  3. #2
    |Drake™|'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    365
    Reputation
    10
    Thanks
    84
    I think save is with a "v" not a "f" /

    Good job though.

  4. #3
    UltimateX1's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    114
    Reputation
    10
    Thanks
    10
    My Mood
    Yeehaw
    Quote Originally Posted by |Drake™| View Post
    I think save is with a "v" not a "f" /

    Good job though.
    it is

  5. #4
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Quote Originally Posted by |Drake™| View Post
    I think save is with a "v" not a "f" /

    Good job though.
    haha true xD for me its late (GMT +1) want to sleep now >.<
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  6. #5
    |Drake™|'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    365
    Reputation
    10
    Thanks
    84
    Quote Originally Posted by kotentopf View Post
    haha true xD for me its late (GMT +1) want to sleep now >.<
    Lol k good night. And btw , this saves an ini so it will load the hack settings you saved?

    Last time mines worked but it never saved to the settings i put.


  7. #6
    DeadLinez's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    http://mpgh.net Sexy Points: 989,576,420
    Posts
    465
    Reputation
    11
    Thanks
    499
    My Mood
    Psychedelic
    nice im gonna add this.

  8. #7
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85
    I'm gonna try also. Great release kotentopf!
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  9. #8
    DeadLinez's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    http://mpgh.net Sexy Points: 989,576,420
    Posts
    465
    Reputation
    11
    Thanks
    499
    My Mood
    Psychedelic
    yet i was the only 1 to thank, way to go seeplusplus, you sir, are a leecher.

  10. #9
    tahha's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    my keyboard or my bed
    Posts
    122
    Reputation
    9
    Thanks
    3
    Quote Originally Posted by DeadLinez View Post
    yet i was the only 1 to thank, way to go seeplusplus, you sir, are a leecher.
    i thought the same thing lol
    and also i add this :}
    nice release
    credited!!!
    (BTW: My Name Is PowerHouse On Other Forums)

    Click this to get PowerHouse Private!

Similar Threads

  1. Simple Plan - This Song Saved My Life Lyrics (1-2 DAYS OUT!!!)
    By Dr.Php in forum Art & Graphic Design
    Replies: 1
    Last Post: 06-18-2011, 07:01 AM
  2. Shugeevan Simple Hack v5.0 [Load More Features]
    By shugeevan in forum Combat Arms Coding Help & Discussion
    Replies: 19
    Last Post: 10-10-2010, 08:44 PM
  3. [Injector] Pornject ++ Internet Stream ++ Save\Load [v3]
    By XxDragonSharKxX in forum CrossFire Spammers, Injectors and Multi Tools
    Replies: 6
    Last Post: 07-02-2010, 11:16 AM
  4. [Help] Dll Loading and Saving via .INI[Solved]
    By XxDragonSharKxX in forum Visual Basic Programming
    Replies: 9
    Last Post: 07-01-2010, 03:31 AM
  5. [Tutorial]Saving/Loading a Listbox Contents
    By Bombsaway707 in forum Visual Basic Programming
    Replies: 13
    Last Post: 02-26-2010, 04:57 PM