Results 1 to 2 of 2
  1. #1
    CA_'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    171
    Reputation
    10
    Thanks
    49
    My Mood
    Hungover

    Angry WOW... New Errors

    Well I got the fly hack to stop floating randomly. But when I turn on, I dont have to push space to go up, I just go up automatically.
    Code:
    
    if(GetAsyncKeyState(VK_SPACE)<0){
    PushTC( "PlayerGravity 800" );
    } else {
    PushTC( "PlayerGravity -800" );
    }
    if(fly && GetAsyncKeyState(VK_SPACE)<0){
    PushTC( "PlayerGravity 800" );
    } else {
    PushTC( "PlayerGravity -800" );
    }
    
    Thats my fly hack code.
    Then my other error is I D/C after about 3 mintues...
    Last edited by CA_; 03-05-2011 at 06:29 PM.
    Capitals letters are the difference between
    "I helped my uncle Jack off a horse."
    and
    "I helped my uncle jack off a horse."
    See the difference?




    So pro...^^^

  2. #2
    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 CA_ View Post
    Well I got the fly hack to stop floating randomly. But when I turn on, I dont have to push space to go up, I just go up automatically.
    Code:
    
    if(GetAsyncKeyState(VK_SPACE)<0){
    PushTC( "PlayerGravity 800" );
    } else {
    PushTC( "PlayerGravity -800" );
    }
    if(fly && GetAsyncKeyState(VK_SPACE)<0){
    PushTC( "PlayerGravity 800" );
    } else {
    PushTC( "PlayerGravity -800" );
    }
    
    Thats my fly hack code.
    Then my other error is I D/C after about 3 mintues...
    You Problem seems to be at
    (fly && GetAsyncKeyState(VK_SPACE)<0)
    Change the <0 to >0
    change from
    (fly && GetAsyncKeyState(VK_SPACE)<0)

    to

    (fly && GetAsyncKeyState(VK_SPACE)>0)
    I just like programming, that is all.

    Current Stuff:

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