Results 1 to 9 of 9
  1. #1
    JamesRo's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,872
    Reputation
    182
    Thanks
    17,852
    My Mood
    Happy

    Is there anything wrong with this loop?

    Addresses are correctly defined, but whenever I turn it on, CF just crashes(no error message, no Xtrap warning, nothing):

    Code:
    for(int y =0; y<321;y++)
    				{
    					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponRange) = 172200;
    				}
    It happens with any hack that uses WeaponMgr, but others(Fast Defuse, No Fall Damage) are working fine... any help?

  2. #2
    buddhayang's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    USA
    Posts
    141
    Reputation
    10
    Thanks
    94
    Quote Originally Posted by JamesRo View Post
    Addresses are correctly defined, but whenever I turn it on, CF just crashes(no error message, no Xtrap warning, nothing):

    Code:
    for(int y =0; y<321;y++)
    				{
    					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponRange) = 172200;
    				}
    It happens with any hack that uses WeaponMgr, but others(Fast Defuse, No Fall Damage) are working fine... any help?
    this could be because its a wrong addy of your WeaponMgr or the wrong addy with WeaponRange

  3. #3
    kjbmarr's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    91
    Reputation
    10
    Thanks
    206
    My Mood
    Tired
    also make sure you have these if statements in your loop.

    DWORD pWeaponMgr = *(DWORD*)(dwCShell + WeaponMgr);
    if(pWeaponMgr)
    {
    for(int y=0; y<321; y++)
    if((*(DWORD*)(pWeaponMgr+(4*y))) != NULL)
    //memhack here
    }
    Last edited by kjbmarr; 05-10-2013 at 07:28 PM.

  4. #4
    JamesRo's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,872
    Reputation
    182
    Thanks
    17,852
    My Mood
    Happy
    For some reson, pWeaponMgr is returning NULL to me, I checked with this code:
    Code:
    if(GetAsyncKeyState(VK_NUMPAD0)&1)
    		{
    			DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
    				
    				if(pWeaponMgr==NULL)
    				{
    					Beep(500,100);//When I press 0, I hear a beep because pWeaponMgr is null...
    					/*for(int i = 0; i< 445; i++)
    					{
    						if((*(DWORD*)(pWeaponMgr+(4*i))) != NULL)
    						{
    							*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0x80C) = 117220;
    						}
    					}*/
    				}		
    		}
    Anyone ever had this problem?

  5. #5
    ARGB's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    9
    My Mood
    Dead
    @JamesRo The problem is you cant code

  6. #6
    JamesRo's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,872
    Reputation
    182
    Thanks
    17,852
    My Mood
    Happy
    Quote Originally Posted by ARGB View Post
    @JamesRo The problem is you cant code
    I've just solved it, so your logic fails

  7. #7
    ARGB's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    9
    My Mood
    Dead
    Quote Originally Posted by JamesRo View Post
    I've just solved it, so your logic fails
    no, I bet you cant code, just because you 'made' a hack you arent a coder
    you use public resources, thats nothing special. Do it alone; learn C/C++!

  8. #8
    JamesRo's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,872
    Reputation
    182
    Thanks
    17,852
    My Mood
    Happy
    Quote Originally Posted by ARGB View Post
    no, I bet you cant code, just because you 'made' a hack you arent a coder
    you use public resources, thats nothing special. Do it alone; learn C/C++!
    Join Date
    Apr 2013

    Thanks for the advice, Mr. Newcomer.

  9. #9
    ARGB's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    9
    My Mood
    Dead
    Quote Originally Posted by JamesRo View Post
    Join Date
    Apr 2013

    Thanks for the advice, Mr. Newcomer.
    emm, anyways I found this site before I started learning C++, I code now for 2.5 years ..
    Since when do you leech?

Similar Threads

  1. was there anything wrong with this threat?
    By valdamirie in forum Call of Duty Black Ops Discussions
    Replies: 4
    Last Post: 11-11-2010, 07:45 PM
  2. is there something wronge with this?
    By theexploited1 in forum General
    Replies: 6
    Last Post: 09-15-2009, 03:32 AM
  3. whats wrong with this...
    By NetNavi in forum WarRock - International Hacks
    Replies: 6
    Last Post: 09-03-2007, 01:19 AM
  4. what is wrong with this source?
    By Petros in forum C++/C Programming
    Replies: 6
    Last Post: 07-04-2007, 04:33 PM
  5. wats wrong with this weapon code
    By CHECK2PASS in forum WarRock - International Hacks
    Replies: 3
    Last Post: 07-03-2007, 04:38 AM