Crash (07-13-2010),HaX4LiFe! (07-12-2010),Houston (07-12-2010),MissRandomSpam (07-12-2010),Mordecai (07-12-2010),MugNuf (07-12-2010),Solify (07-12-2010),whatup777 (07-12-2010),zmansquared (07-12-2010),Zoom (07-12-2010)
Hi All! I am new to MPGH. I'll throw u guys some functions
Includes:
[php]#include <time.h>[/php]
Time:
[php]/*****************The Time*******************/
char *TheTime()
{
char *logbuf = new char[ 256 ];
struct tm *newtime;
char am_pm[] = "AM";
time_t long_time;
time( &long_time );
newtime = localtime( &long_time );
if( newtime->tm_hour > 12 )
strcpy( am_pm, "PM" );
if( newtime->tm_hour > 12 )
newtime->tm_hour -= 12;
if( newtime->tm_hour == 0 )
newtime->tm_hour = 12;
sprintf( logbuf, "[ %02d:%02d:%02d %s ]", newtime->tm_hour, newtime->tm_min, newtime->tm_sec, am_pm );
return logbuf;
}
/*****************The Time*******************/[/php]
Date:
[php]/*****************The Date*******************/
char *TheDate()
{
time_t curtime = time(0);
tm now=*localtime(&curtime);
char dest[BUFSIZ]={0};
const char format[]="[ %d:%b:%Y ]";
if (strftime(dest, sizeof(dest)-1, format, &now)>0)
return dest;
}
/*****************The Date*******************/[/php]
If you have any C++ Common sense, you'd know how to draw it I am not out to post "Copy and Paste" code. Figure it out yourself
IF YOU ARE GOING TO USE IN YOUR HACK, REMEMBER TO GIVE ME CREDITS
Remember to Thank Me!
Last edited by Fabolous; 07-12-2010 at 06:15 AM.
Crash (07-13-2010),HaX4LiFe! (07-12-2010),Houston (07-12-2010),MissRandomSpam (07-12-2010),Mordecai (07-12-2010),MugNuf (07-12-2010),Solify (07-12-2010),whatup777 (07-12-2010),zmansquared (07-12-2010),Zoom (07-12-2010)
It works. i just added it and compiled and got it to work.
thanks bro
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
Nice Release
This Works.
Last edited by Mordecai; 07-12-2010 at 06:05 AM.
Thank you Guys!
Don't say it, press it!
i pressed it!!!!!!
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
This also works :
For example :Code:SYSTEMTIME st; GetSystemTime(&st); st.w(insert time measurement here)
Right now it would output this :Code:char timebuffer[512]; sprintf_s(timebuffer, 512, "[ %d / %d / %d ] - [ %d : %d : %d ]", (int)st.wMonth, (int)st.wDay, (int)st.wYear, (int)st.wHour - 4, (int)st.wMinute, (int)st.wSecond); DrawString(10, 10, timebuffer, D3DCOLOR_XRGB(255, 0, 0));
[ 07 / 12 / 2010 ] - [ 3 : 22 : 18 ]
At least where I live.
they both work. seals is a alittle easier for a noob to understand
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
It works either way, thats just my method.
can you put one for C# and VB? i am going to try something with this later
Lol. You can do that yourself. Copy the code. Like you were going to anyways. Except instead of copying and pasting into C++. Go to google, and find a C++/C# Code Converter, and place it in there to convert it into a C# Code.
those converters are so expensive though
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-