Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive

    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:


    Last edited by LionelMessi10; 12-07-2010 at 04:33 PM.

  2. The Following User Says Thank You to LionelMessi10 For This Useful Post:

    poiuytm (12-09-2010)

  3. #2
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,992
    My Mood
    Flirty
    Thats not a timer. Its the Time

  4. The Following User Says Thank You to ac1d_buRn For This Useful Post:

    LionelMessi10 (12-07-2010)

  5. #3
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Haha yep good job i guess

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

  6. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Where the fuck is the timer..

  7. #5
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by whit View Post
    Where the fuck is the timer..
    In my Visual Basic toolbox.

  8. #6
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by ᴺᴼᴼᴮ View Post


    In my Visual Basic toolbox.
    Haha..

    @Whit This guy sucks at google translate -.-

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

  9. #7
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    I think your missing to include time.h

  10. #8
    PID3RMAN's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    im lost
    Posts
    1,413
    Reputation
    20
    Thanks
    107
    My Mood
    Amazed
    So i just C+P this right?
    life is a bitch then you die
    so lets all smoke weed


  11. #9
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Quote Originally Posted by UnknownCoder 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

  12. #10
    PID3RMAN's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    im lost
    Posts
    1,413
    Reputation
    20
    Thanks
    107
    My Mood
    Amazed
    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
    life is a bitch then you die
    so lets all smoke weed


  13. #11
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Quote Originally Posted by Nubzgetkillz View Post
    Haha yep good job i guess
    Thanks, your is Epic Coder!

  14. #12
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    speaking from my new PS3 in MIAMI: how is this a timer or is it the noobproof part
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  15. #13
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    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?

  16. #14
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    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.

  17. #15
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    Quote Originally Posted by Alessandro10 View Post
    I have xbox 360
    nice!!!!!!!!
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

Page 1 of 2 12 LastLast