Red face[Help]Time and Date

Posts 1–6 of 6 · Page 1 of 1
[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
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
nvm im not sure what ur trying to do
Quote Originally Posted by DeadLinez View Post
nvm im not sure what ur trying to do
he wants to display time/date in CA/
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us