Results 1 to 6 of 6
  1. #1
    ongjx's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    3

    Whats wrong with my code?

    can anyone advice me? My code causes blackshot to crash -> saying game hack detected.

    please let me know which portion of my code need to be edited. thanks!

    Code:
    #define WIE1 0x0054B054
    #define WIE2 0x0054AF6A
    #define SSG 0x1AAD5908
    
    void WeaponIndexError()
    {
    	*(PBYTE)WIE1 = 0;
    	*(BYTE*)WIE2 = 0x74;
    }
    
    
    void Original()
    {
    	*(PBYTE)WIE1 = 0xFF;
    	*(BYTE*)WIE2 = 0x75;
    }
    
    
    void Start()
    {
    	while (true)
    	{
    		*(BYTE*)SSG = 0x1301;
    
    		if (GetAsyncKeyState(VK_HOME) < 0)
    		{
    			WeaponIndexError();
    		}
    		if (GetAsyncKeyState(VK_END) < 0)
    		{
    			Original();
    		}
    	}
    }
    
    BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
    {
    	if (dwReason == DLL_PROCESS_ATTACH){
    		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
    
    	}
    	return 1;
    }

  2. #2
    ZhinLoung's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Posts
    181
    Reputation
    10
    Thanks
    14
    Troll? LOL, u dk weapon hack patched after the latest emergency update?

  3. #3
    MafiaBoy BlackShit's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Location
    Secret
    Posts
    467
    Reputation
    10
    Thanks
    1,228
    My Mood
    Amazed
    Wrong At
    Code:
    *(BYTE*)SSG = 0x1301;
    We're Anonymous
    We're Hacker, We're Not Going To Stop!
    Bcaus We're Hacker!

    AOA Music

  4. #4
    astron52's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Location
    Rainbow ¬_¬
    Posts
    863
    Reputation
    10
    Thanks
    1,054
    My Mood
    In Love
    Quote Originally Posted by MafiaBoy BlackShit View Post
    Wrong At
    Code:
    *(BYTE*)SSG = 0x1301;
    I wonder wie is still working? this guy try making it..

    My Achievements

    Get 100 thanks ✔
    Get 200 thanks ✔
    Get 300 thanks ✔
    Get 400 thanks ✔
    Get 500 thanks ✔
    Get 1000 thanks ✔
    Get 2000 thanks ✘
    Get 5000 thanks ✘

  5. #5
    lishao's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by astron52 View Post
    I wonder wie is still working? this guy try making it..
    he think keep try can liao AHAHAHA

    - - - Updated - - -

    jiaxuan sia :3

  6. #6
    ongjx's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    3
    Admins please close this thread as issue is solved. thanks

Similar Threads

  1. [Source Code] What Wrong with this code?
    By DaRk in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 15
    Last Post: 08-06-2011, 01:55 PM
  2. [Help] whats wrong with my code.
    By GS-HITMAN in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 10
    Last Post: 04-06-2011, 06:50 AM
  3. [Help]whats wrong with my code?
    By kibbles18 in forum C++/C Programming
    Replies: 8
    Last Post: 12-05-2010, 08:27 PM
  4. Whats wrong with this code ?
    By bohnenbong in forum WarRock - International Hacks
    Replies: 7
    Last Post: 10-26-2007, 07:57 AM
  5. Whats wrong with my code? =(
    By SadisticGrin in forum C++/C Programming
    Replies: 13
    Last Post: 08-03-2007, 12:39 PM