Originally Posted by
c0ke187
Wow , Leach much brah?
All you gotta do is use some simple winAPIS to obtain the current time and then use ur PrintTextD3dFunc to write it where u want!
Code:
struct tm * current_tm;time_t current_time;time (¤t_time);
current_tm = localtime (¤t_time);char *logbuf = new char[ 256 ];
sprintf( logbuf, "[%02d:%02d:%02d]", current_tm->tm_hour, current_tm->tm_min, current_tm->tm_sec );
flameswor10->PrintText(fontxD,3 , 3, D3DCOLOR_ARGB(255, 255, 0, 0), "%s", logbuf);
Directly from my code