Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 50
  1. #31
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,662
    My Mood
    Dead
    Quote Originally Posted by VvITylerIvV View Post
    If your using getasynckeystate in more advanced ways, not including 0x8000 will screw up your program due to this new thing called multithreading which wasn't around when getasynckeystate was created.

    So if it has a chance to screw up your program, you SHOULD have enough experience to know how to fix it. Logically.
    Stop inventing ways to screw up your code ; Make it good and it won't happen. Having more than one thread checking for keypresses accessing the same function(s) is pretty dumb.

    If you "screw things up" with keystate get's, Use keyboard hooks, They can be cute.
    Love You All~

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

    Lyoto Machida (06-02-2011)

  3. #32
    Emma Watson's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,581
    Reputation
    2
    Thanks
    239

    fix that shit/

  4. #33
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    lol That is from your computer..Works fine here and my school shiity computers..
    Try to compile the code yourself?

  5. #34
    VvITylerIvV's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    The streets
    Posts
    668
    Reputation
    5
    Thanks
    61
    My Mood
    In Love
    Quote Originally Posted by Melodia View Post


    Stop inventing ways to screw up your code ; Make it good and it won't happen. Having more than one thread checking for keypresses accessing the same function(s) is pretty dumb.

    If you "screw things up" with keystate get's, Use keyboard hooks, They can be cute.
    I'm not screwing anything up with my GetAsyncKeyState's. But I let the OP know what 0x8000 did. It made sure your code didn't get screwed up.

    What I forgot to include, is 0x8000 = 31627.
    Favourite quotes:

    Code:
    I don't need easy, I just need possible. ~ Me 
    
    There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this
    
    Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
    Quote Originally Posted by VirtualSia View Post
    You both have a very weird and awkward view on Computer science.
    Computer science is about computing, which is programming.
    Definition of computing: The use or operation of computers.
    Turning on my computer = computing = programming
    LAWLFAIL

  6. #35
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by VvITylerIvV View Post
    I'm not screwing anything up with my GetAsyncKeyState's. But I let the OP know what 0x8000 did. It made sure your code didn't get screwed up.

    What I forgot to include, is 0x8000 = 31627.
    0x8000 == 32768

  7. #36
    VvITylerIvV's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    The streets
    Posts
    668
    Reputation
    5
    Thanks
    61
    My Mood
    In Love
    Quote Originally Posted by Lyoto Machida View Post


    0x8000 == 32768
    Honestly, I meant 32627... I get these two numbers mixed up a lot. >:S
    Favourite quotes:

    Code:
    I don't need easy, I just need possible. ~ Me 
    
    There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this
    
    Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
    Quote Originally Posted by VirtualSia View Post
    You both have a very weird and awkward view on Computer science.
    Computer science is about computing, which is programming.
    Definition of computing: The use or operation of computers.
    Turning on my computer = computing = programming
    LAWLFAIL

  8. #37
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    I got it from the calculator

  9. #38
    VvITylerIvV's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    The streets
    Posts
    668
    Reputation
    5
    Thanks
    61
    My Mood
    In Love
    Quote Originally Posted by Lyoto Machida View Post
    I got it from the calculator
    I went off my memory...
    Favourite quotes:

    Code:
    I don't need easy, I just need possible. ~ Me 
    
    There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this
    
    Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
    Quote Originally Posted by VirtualSia View Post
    You both have a very weird and awkward view on Computer science.
    Computer science is about computing, which is programming.
    Definition of computing: The use or operation of computers.
    Turning on my computer = computing = programming
    LAWLFAIL

  10. #39
    UL7RA's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    738
    Reputation
    14
    Thanks
    21
    My Mood
    Asleep
    I CANT FUCKING BEAT HIM

  11. #40
    GForce-Cody's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    C:\Cody\Desktop\MPGH\
    Posts
    1,650
    Reputation
    120
    Thanks
    345
    My Mood
    Relaxed
    @Lyoto Machida
    not advanced went straight down the middle he didnt block.

  12. #41
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    He just lost his skills by farming

  13. #42
    Toxic Waltz's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    114
    Reputation
    14
    Thanks
    18
    Quote Originally Posted by Lyoto Machida View Post
    Code:
    void Won()
    { ClearPlays();
     system("cls");
     cout << "\t\t\tThe winner is: " << Winner << endl;
     if(Player != Winner){ cout << "\t\t\tYou just lost =(" << endl; }else { cout << "\t\t\tYOU WIN!" << endl; }
     ClearPlays();
     Winner = NULL; system("pause");
     ClearPlays();
     main(); }
    why do you use ClearPlays(); 3 times?

  14. #43
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by Toxic Waltz View Post
    why do you use ClearPlays(); 3 times?
    Cause when i put only 1, it bugs and do shit
    But anyway this is old, I can make now 50 lines code better then this

  15. #44
    Toxic Waltz's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    114
    Reputation
    14
    Thanks
    18
    Quote Originally Posted by Lyoto Machida View Post


    Cause when i put only 1, it bugs and do shit
    But anyway this is old, I can make now 50 lines code better then this
    do it and post it.

    GOGOGO!

  16. #45
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by Toxic Waltz View Post
    do it and post it.

    GOGOGO!
    Do not want, Later

Page 3 of 4 FirstFirst 1234 LastLast