Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love

    Time, date and FPS functions.

    Code:
    float	    fLastTickCount = 0.0f;           
    float	    fCurrentTickCount;
    char	     cFrameRate[30]; 
    fCurrentTickCount = clock() * 0.001f;
    noFps++;
    if((fCurrentTickCount - fLastTickCount) > 1.0f)
    {
    fLastTickCount = fCurrentTickCount;
    sprintf(FPSxD, "%d", noFps);
    noFps = 0;
    }
    Code:
    char        date[20];
    struct tm * current_tm;
    time_t current_time;
    time (&current_time);
    current_tm = localtime (&current_time);
    sprintf( DatexD, "%d-%02d-%d",current_tm->tm_mon+1,current_tm->tm_mday,current_tm->tm_year-100+2000);
    Code:
    #include <time.h>
    char        date[20];
    struct tm * current_tm;
    time_t current_time;
    time (&current_time);
    current_tm = localtime (&current_time);
    sprintf( TimexD,"%02d:%02d:%02d", current_tm->tm_hour, current_tm->tm_min, current_tm->tm_sec );
    Simple ways of doing it /
    Last edited by flameswor10; 12-08-2010 at 04:31 AM.
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  2. #2
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    Nice
    Last edited by o-o; 12-08-2010 at 06:50 AM.

    Happy Hanukkah For All Of MPGH !


    The Real Life Are Better Then A Game !


    Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]
    Best Friends :

    Hax4Life!

    Solify

    [MPGH]Drake`

    Respect Them Or I'll Kill You ...



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

    [MPGH]flameswor10 (12-08-2010)

  4. #3
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,358
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    My Time Function is a bit smaller. And i think you dont have to include the time.h.
    Bcuz i didnt included it and it works.

    Thanks Cosmos


  5. #4
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    Quote Originally Posted by kongamonga View Post
    My Time Function is a bit smaller. And i think you dont have to include the time.h.
    Bcuz i didnt included it and it works.
    It's the thought of releasing it and helping people that counts
    Much simpler than Coryster2100's way
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  6. The Following User Says Thank You to flameswor10 For This Useful Post:

    Sydney (12-09-2010)

  7. #5
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    the is now without the "/" at beginning xD

    Creditz for FPS: Sardonik(i think)
    time idk but its so simple xD
    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?

  8. #6
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,358
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    Quote Originally Posted by flameswor10 View Post
    It's the thought of releasing it and helping people that counts
    Much simpler than Coryster2100's way
    Thats true.
    I just said that mine if a bit smaller. Well Gj Flame.

    Thanks Cosmos


  9. The Following User Says Thank You to Sydney For This Useful Post:

    [MPGH]flameswor10 (12-09-2010)

  10. #7
    UGodly's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    http://www.mpgh.net/forum/members/645501-ugodly.html
    Posts
    1,234
    Reputation
    18
    Thanks
    160
    My Mood
    Yeehaw
    Good job dude and thanks

  11. #8
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    ....Why this again?
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  12. #9
    Zithium's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    UK
    Posts
    2,997
    Reputation
    103
    Thanks
    438
    My Mood
    Psychedelic
    Thanks man, good job.
    "Depending on the context, I may or may not enjoy getting stoned to death" - zιтнιυм™

    Ex WarRock Minion Force



  13. #10
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Nice Job Bro. But there is a slightly better way of doing it!

  14. #11
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    cOLD


  15. #12
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,358
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    Quote Originally Posted by ᴺᴼᴼᴮ View Post
    cOLD

    Spam much ?

    Thanks Cosmos


  16. #13
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    Quote Originally Posted by Zane Slayman View Post
    Nice Job Bro. But there is a slightly better way of doing it!
    I know. But Just showing one way of doing these things
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  17. #14
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85
    xD I do time and date differently.
    [php]#include <ctime>
    time_t t = time(0);
    cpp.PrintText(ScreenCenterX-1, 10, D3DCOLOR_XRGB(0,0,0), cpp.pFont1, ctime(&t));[/php]
    Very simple...
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  18. #15
    confict's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    422
    Reputation
    3
    Thanks
    290
    My Mood
    Relaxed
    Quote Originally Posted by seeplusplus View Post
    xD I do time and date differently.
    [php]#include <ctime>
    time_t t = time(0);
    cpp.PrintText(ScreenCenterX-1, 10, D3DCOLOR_XRGB(0,0,0), cpp.pFont1, ctime(&t));[/php]
    Very simple...
    This is a way easyer way lol

    ITS MEH BITCHESSS !!!

Page 1 of 2 12 LastLast