Results 1 to 6 of 6
  1. #1
    josielcardoso7's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    3

    game close using while

    I tested various sources in my device, and tested parts at parts and i detected what if using while and sleep in the source, the game close, but removing, the cheat don't work.

    please help

    sorry my bad english

  2. #2
    CaioFonseca's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Location
    XCrap.xt
    Posts
    27
    Reputation
    10
    Thanks
    5
    oh, Same thing here with crossfire arx
    My name is Network

  3. #3
    iProgammer's Avatar
    Join Date
    Nov 2016
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    4
    Code:
    BOOL IsGameHooked ()
    {
     if ( GetModuleHandleA("CShell.dll") != 0 && GetModuleHandleA("ClientFx.fxd") != 0 )
      return true;
     return false;
    }
     
    VOID HookThread ( LPVOID )
    {
     while (!IsGameHooked())
      Sleep(250);
     
     while ( true )
     {
    	 YouWall();
     }
    }
    No need for more ...


    Credits for Xaruto, Xaruto do not know ... and NetworkMgr

  4. #4
    -[I]fLuX's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    342
    Reputation
    112
    Thanks
    3,923
    My Mood
    Bored
    I would guess that you mean with device a hook like endscene and in a hook you already have a loop so if you use while(1) it will be crash because you are trying to make a loop inside from a loop. And if you use sleep inside the hook it will be call sleep the whole time and the game will freeze.

  5. #5
    I2espect's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    On Other Planet
    Posts
    641
    Reputation
    28
    Thanks
    870
    My Mood
    Devilish
    you are freezing the game thread ...
    create a new thread or just do your stuff without loop and your hook should call your function ..

  6. #6
    D2-DEV's Avatar
    Join Date
    Nov 2016
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    7
    My Mood
    Busy
    Quote Originally Posted by I2espect View Post
    you are freezing the game thread ...
    create a new thread or just do your stuff without loop and your hook should call your function ..
    RETURNED MAKING HACKS AND SOURCES?

Similar Threads

  1. Replies: 2
    Last Post: 09-10-2016, 02:08 PM
  2. game closes iteself?
    By deezy427 in forum Combat Arms Help
    Replies: 7
    Last Post: 10-05-2009, 09:14 PM
  3. Problom|Game Close 1-2minits no hack use
    By almog6666 in forum Combat Arms Europe Hacks
    Replies: 7
    Last Post: 03-01-2009, 02:41 AM
  4. Whats best gun to use while hacking?
    By bogo20 in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 01-31-2009, 10:54 PM
  5. Game closes with hack :(
    By Nicremz in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 01-06-2009, 05:13 AM