Results 1 to 13 of 13
  1. #1
    [G]a[M]e[R]'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    594
    Reputation
    22
    Thanks
    198
    My Mood
    Cool

    TUT Oneline Games Codes

    You want to make a Date-Funktion in your d3d hack?
    Us this code:
    Code:
    char* DATE(void)
    {
    static char cdate[20] = "";
    struct tm * current_tm;
    time_t current_time;
    time (&current_time);
    current_tm = localtime (&current_time);
    sprintf( cdate, "%d-%02d-%d",current_tm->tm_mon+1,current_tm->tm_mday,current_tm->tm_year-100+2000);
    return cdate;
    }
    Credits [G]a[M]e[R]

    ==================================================
    Panickey Function

    You want to make a Panickey Function in your d3d hack?
    Us this code:

    Code:
    if(panic)
    {
            if( GetAsyncKeyState( VK_CONTROL))
    {
                    if( GetAsyncKeyState( VK_SPACE))
    {
                            ExitGame(0);
    }
    }
    }


    Credits [G]a[M]e[R]
    ==================================================
    FPS

    Code:
    /* #include */
    #include <time.h>
    float fLastTickCount=0.0f;
    float fCurrentTickCount;
    char CH_FPS [20];
    
    /* MENU[MENUMAXITEMS]; */
    int CH_NoFPS=0;
    
    /* void RebuildMenu(void) */
    MenuAddItem("Framerate:",(char **)CH_FPS,0,0,MENUTEXT);
    
    /* HRESULT WINAPI myPresent */
    if(CH_FPS)
    {
             fCurrentTickCount=clock() * 0.001f;
             CH_NoFPS++;
    if((fCurrentTickCount - fLastTickCount)>1.0f)
    {
             fLastTickCount=fCurrentTickCount;
             sprintf(CH_FPS, "%d", CH_NoFPS);
             CH_NoFPS=0;
    }
    }

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    None of these are really creds to you..Just saying

  3. The Following User Says Thank You to whit For This Useful Post:

    Hell_Demon (03-18-2011)

  4. #3
    [G]a[M]e[R]'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    594
    Reputation
    22
    Thanks
    198
    My Mood
    Cool
    Really by ME 100%

  5. #4
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Should be posted in the snippets thread.

  6. #5
    andi liu's Avatar
    Join Date
    Feb 2011
    Gender
    female
    Location
    indonesia
    Posts
    5
    Reputation
    10
    Thanks
    1
    My Mood
    Cold

    Question problem

    Quote Originally Posted by [G]a[M]e[R] View Post
    Really by ME 100%
    why after i build , i have this eroor problem

    error C2365: 'DATE' : redefinition; previous definition was 'typedef'
    1> c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h(1019) : see declaration of 'DATE'


    thanx ,before , for the Source code . .

  7. #6
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,662
    My Mood
    Dead
    How in the world would this be useful to someone ?, By the way GAKS is Fugly, And this thread made me cry.

    Seriously, Fugly code is Fugly D:, And anybody with common knowledge would implement these ideas more cutely than that..
    Love You All~

  8. #7
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by Melodia View Post
    this thread made me cry.
    OP needs to die then (=
    Ah we-a blaze the fyah, make it bun dem!

  9. #8
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Quote Originally Posted by Hell_Demon View Post
    OP needs to die then (=
    Obviously.

    BTW does anyone get this line?
    Code:
    struct tm * current_tm;
    Is he declaring an empty structure and creating a pointer to it on the same line? I've never seen a declaration like that.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  10. #9
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    in C you have to declare using Struct before.

    Struct <StructName> <varname>

    Code:
    struct Xpto {
          int test;
    }
    C++:

    Xpto *lalal;

    C:

    Struct Xpto *lala; //Otherwise: Error
    Last edited by 'Bruno; 03-23-2011 at 08:22 AM.

  11. The Following 3 Users Say Thank You to 'Bruno For This Useful Post:

    Hell_Demon (03-23-2011),Melodia (03-23-2011),why06 (03-23-2011)

  12. #10
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Oh thanks Brinuz. Learn something new everyday.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  13. The Following 2 Users Say Thank You to why06 For This Useful Post:

    'Bruno (03-23-2011),Hell_Demon (03-23-2011)

  14. #11
    CoOKiEbrEEd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    USA
    Posts
    149
    Reputation
    10
    Thanks
    13
    My Mood
    Bored
    Won't work for crossfire Damn Xtrap

  15. #12
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed
    I love how people always think that if you just copy and paste some random code, it will work. It always makes me laugh.
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  16. #13
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    720
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy



    Put this image in your signature if you support HTML5 development!