Results 1 to 6 of 6
  1. #1
    ◘◘◘◘◘◘'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    40
    Reputation
    11
    Thanks
    6
    My Mood
    Amazed

    Red face [Help]Time and Date

    i feel like a huge noob asking this but i wanna learn how to use the DrawText/PrintText function so i wanna add time and date to my d3d menu hack ive tried this on my own just crashes the game
    [php]
    #include <time.h>

    struct tm * current_tm;
    time_t current_time;time (&current_time);
    current_tm = localtime (&current_time);
    char *month []={"January","February","March","April","May","June ","July","August","September","October","November" ,"December"};
    char *logbuf = new char[ 256 ];

    sprintf( logbuf, "%02dth %s %d [%02d:%02d:%02d]",current_tm->tm_mday,month[current_tm->tm_mon],current_tm->tm_year-100, current_tm->tm_hour, current_tm->tm_min, current_tm->tm_sec);

    PrintText(pFont, 10, 1, Green,logbuf);
    [/php]

    thats wat i got so far any help plz /

    thanks in advance

  2. #2
    inliner's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    d
    Posts
    64
    Reputation
    10
    Thanks
    11
    why dont u just use this?
    its easier
    ctime - C++ Reference

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

    ◘◘◘◘◘◘ (10-15-2010)

  4. #3
    ◘◘◘◘◘◘'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    40
    Reputation
    11
    Thanks
    6
    My Mood
    Amazed
    Quote Originally Posted by inliner View Post
    why dont u just use this?
    its easier
    ctime - C++ Reference
    yes tht maybe easier but thts not wat im askin i wanna learn how to use the drawtext/printtext function

  5. #4
    HaX4LiFe!'s Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    1,639
    Reputation
    22
    Thanks
    1,405
    lol funny

  6. #5
    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
    nvm im not sure what ur trying to do

  7. #6
    UltimateX1's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    114
    Reputation
    10
    Thanks
    10
    My Mood
    Yeehaw
    Quote Originally Posted by DeadLinez View Post
    nvm im not sure what ur trying to do
    he wants to display time/date in CA/

Similar Threads

  1. [Help] I posted this many time and no one still help.
    By LiL Mikko in forum Other Programming
    Replies: 2
    Last Post: 05-23-2011, 11:55 AM
  2. [Help Request] Estern Time And GMT
    By [A]bbest in forum CrossFire Help
    Replies: 3
    Last Post: 05-19-2011, 08:06 PM
  3. [Help] Get Time and Date
    By Web-Designer in forum Web Languages
    Replies: 2
    Last Post: 01-05-2011, 11:22 AM
  4. Time and Date Function
    By God601 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 29
    Last Post: 10-02-2010, 02:39 PM
  5. [C++ SOURCE]Simple D3D Show Time and Date
    By mastermods in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 08-11-2010, 09:50 AM