How to Make a Timer in C++

Posts 1–15 of 24 · Page 1 of 2
How to Make a Time in C++
Inside RenderFrame place this code:

NoobProof!

There are some simple errors


Code:
char Timestruct[16] = "hh':'mm':'ss:tt";       
char TimeString[25];                           
GetTimeFormat(NULL,NULL,NULL,NULL,Timestruct,15);
sprint(TimeString,"%s",Timestruct);

Now let's do appear in the game!

Code:
PrintText(Directx.pFont, X,Y, D3DCOLOR_ARGB(Values of Color),TimeString);
Result:


Thats not a timer. Its the Time
Quote Originally Posted by Nubzgetkillz View Post
Haha yep good job i guess
Thanks, your is Epic Coder!
Where the fuck is the timer..
Quote Originally Posted by whit View Post
Where the fuck is the timer..
In my Visual Basic toolbox.
Quote Originally Posted by NOOB View Post


In my Visual Basic toolbox.
Haha..

@Whit This guy sucks at google translate -.-
Quote Originally Posted by Fabolous View Post
I think your missing to include time.h
whatever, I felt better inside the render

Quote Originally Posted by PID3RMAN View Post
So i just C+P this right?
copy and get the simple errors

Quote Originally Posted by whit View Post
Where the fuck is the timer..
I Love you Too!!!!!!!!

Whit look what I did with our base (I said mine).



Look what time it
Quote Originally Posted by Alessandro10 View Post
whatever, I felt better inside the render



copy and get the simple errors



I Love you Too!!!!!!!!
I was kidding uMad
Quote Originally Posted by Alessandro10 View Post
I Love you Too!!!!!!!!

Whit look what I did with our base (I said mine).



Look what time it
How is it our base?
Quote Originally Posted by topblast View Post
speaking from my new PS3 in MIAMI: how is this a timer or is it the noobproof part
I have xbox 360

Quote Originally Posted by whit View Post


How is it our base?
I meant that the changes to make.
Quote Originally Posted by Alessandro10 View Post
I have xbox 360
nice!!!!!!!!
I think your missing to include time.h
So i just C+P this right?
speaking from my new PS3 in MIAMI: how is this a timer or is it the noobproof part
Posts 1–15 of 24 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Talk with us