Page 1 of 3 123 LastLast
Results 1 to 15 of 37
  1. #1
    Shimmy-'s Avatar
    Join Date
    Aug 2010
    Gender
    female
    Posts
    62
    Reputation
    10
    Thanks
    0

    [Understanding] bool IsGameReadyForHook

    I am having a bit of trouble understanding
    Code:
    return true;
    return false;
    Why do you have both?

    Code:
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    && GetModuleHandleA( "CShell.dll"   ) != NULL )
    return true;
    return false;
    }

  2. #2
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid

    Quit coding now..

  3. #3
    Shimmy-'s Avatar
    Join Date
    Aug 2010
    Gender
    female
    Posts
    62
    Reputation
    10
    Thanks
    0
    No I wont, only losers like you will quit.
    and you probably dont understand it. so stfu.

  4. #4
    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 will never quit. and im damn sure i'll whoop your ass

  5. #5
    Shimmy-'s Avatar
    Join Date
    Aug 2010
    Gender
    female
    Posts
    62
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by UnknownCoder View Post
    I will never quit. and im damn sure i'll whoop your ass
    Stop commenting on this thread if you are not helping.
    I am just trying to learn and understand everything before I start.

  6. #6
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    789
    My Mood
    Lurking
    atleast hes asking and not c+ping shit and releasing.

  7. #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
    U have both for a reason. Go GOOGLE. Stop wasting other peoples time on these stupid questons on MPGH. go to MSDN for God sakes. You shouldn't be coding CA if you don't even know the basics of C++.. Hit the books, and come back later.

  8. #8
    Shimmy-'s Avatar
    Join Date
    Aug 2010
    Gender
    female
    Posts
    62
    Reputation
    10
    Thanks
    0
    Wouldn't you need an }else{ in there to make it work?

    @unknown
    It would only take a few seconds for you to explain and you dont have that time. dont talk shit.

  9. #9
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Quote Originally Posted by wassup40 View Post
    atleast hes asking and not c+ping shit and releasing.
    I C&P Shit?? really? GTFO. U dont even code. u just release shitty numpad hacks.

  10. #10
    Shimmy-'s Avatar
    Join Date
    Aug 2010
    Gender
    female
    Posts
    62
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by UnknownCoder View Post


    I C&P Shit?? really? GTFO. U dont even code. u just release shitty numpad hacks.
    lol you probably dont even know what it means. so gtfo NOW! Only EXPERT CODERS would know and i doubt you are one..

  11. #11
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,561
    Reputation
    127
    Thanks
    5,912
    My Mood
    Happy
    Learn c++ maybe
    -Rest in peace leechers-

    Your PM box is 100% full.

  12. #12
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Quote Originally Posted by Shimmy- View Post
    lol you probably dont even know what it means. so gtfo NOW! Only EXPERT CODERS would know and i doubt you are one..
    whatever. I'm out. Go make a winamp hook lol. Its quite easy. but i bet you cant write from scratch like me.

  13. #13
    Finish's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    126
    Reputation
    11
    Thanks
    6
    My Mood
    Happy
    ok let me explain

    Code:
    If (The things in here Not = NULL)
          Return True;
    else
          return False;
    that is what it is saying.

    but instead of putting the ELSE

    Code:
    if (Stuff){
        Return True
    }
    If the stuff is not right then it will just pass it. and just go to Return False

    but if it is stuff is right. then it will Return as True. before it can return false.

  14. The Following User Says Thank You to Finish For This Useful Post:

    markoj (08-10-2010)

  15. #14
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    *Sigh*

    This is basic coding, in any language.

    It's just an if statement.. Do you not understand methods? Once it returns something, the method doesn't continue after that point.

    Also this code should be formatted like this, not all even and shit:
    Code:
    bool IsGameReadyForHook()
    {
         if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
         && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
         && GetModuleHandleA( "CShell.dll"   ) != NULL )
              return true;
    
         return false;
    }
    So for the if statement it's just checking to see if all 3 of them are loaded and when all of them are, it returns true. In all other cases, it returns false. You don't need brackets because it is only one line of code inside the if statement, and you don't need an else because it is a method like i said before. I hope you understand basic C++ now >.>

  16. #15
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    from all the flaming.

    What this does is that it creates a Boolean called IsGameReadyForHook. It then checks to see if the combat arms .dll's have loaded. It is returned as false until all the dlls have loaded making it true. This Boolean is later used to create your threads after it see's the combat arms dlls have loaded.

    Edit: Ah LightzOut got it before me!

Page 1 of 3 123 LastLast

Similar Threads

  1. I don't understand Cheat Engine and VB
    By radnomguywfq3 in forum Visual Basic Programming
    Replies: 6
    Last Post: 08-29-2007, 05:20 PM
  2. I dont understand?
    By Mikeck901323 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 05-16-2007, 12:16 AM
  3. I dont understand!
    By sunny92 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-04-2007, 03:44 PM
  4. Understanding Christianity
    By jeehad in forum Islam vs Western World
    Replies: 21
    Last Post: 04-30-2007, 05:56 PM
  5. I dont understand the tutorial
    By ValconGSX in forum WarRock - International Hacks
    Replies: 1
    Last Post: 01-16-2006, 05:11 PM