Results 1 to 4 of 4
  1. #1
    SawMister's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Germany
    Posts
    23
    Reputation
    16
    Thanks
    0

    Question How can i delete "For (; ;)"?

    Hello.

    I have this codesnipped;

    Code:
    DWORD val2 = 0;
    
    bool State2 = false;   
    
    void punkte2()    
    {
        if(State2)
        {
            DWORD wert2 = 0;
    				
    				HANDLE hProc = OpenProcess(((0x000F0000L) | (0x00100000L) | 0xFFFF), 0xFFFFFF, (unsigned int)GetCurrentProcessId());
    
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)((BasePointer2))), sizeof((PDWORD)(BasePointer2))); 
    					if(wert2 > 0){
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)((BasePointer2))), sizeof((PDWORD)(BasePointer2)));
    					wert2 += Points5;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
    					wert2 += Points6;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
    					wert2 += Points7;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2))); 
    					wert2 += Points8;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
    					wert2 += Points9;
    					memcpy((PVOID*)(*(int*)(&wert2)), (PWORD*)((void*)&(*(_Uint32t*)&val2)), 4);}
    
        }
    }
    
    DWORD WINAPI HackThread2(LPVOID unused)
    {
       
        for(; ;)  
        {
            punkte2();  
           
    		   if(GetAsyncKeyState(VK_CONTROL) & GetAsyncKeyState(VK_F5)){
    			  
    			if(State2){ State2 = false; }
    		
    			else{
    				State2 = true;
    				HANDLE hProc = OpenProcess(((0x000F0000L) | (0x00100000L) | 0xFFFF), 0xFFFFFF, (unsigned int)GetCurrentProcessId());
    
    				DWORD wert2 = 0;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)(BasePointer2)), sizeof((PDWORD)(BasePointer2)));
    				if(wert2 > 0){
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)(BasePointer2)), sizeof((PDWORD)(BasePointer2)));
    				wert2 += Points5;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
    				wert2 += Points6;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
    				wert2 += Points7;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
    				wert2 += Points8;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
    				wert2 += Points9;
    				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2))); 
    				wert2 = 16666;
    				val2 = wert2;}
    				
    			}
    		} 
          //Sleep(2);
        }
    }
    Can you please tell me, how to delete the "for (; " so it do it once and not again and again?
    I was not able to delete without mistakes..

    I hope you can delete it fast, because i think its easy, but not for a newbie..

    Thank you really much! And sorry for my English..

    Regards, Rene

  2. #2
    atom0s's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    403
    Reputation
    139
    Thanks
    104
    You can just comment out the for(; line like:
    //for(;

    The scope of the { } will not break the rest of the code so it will work fine still. If you want to remove it all, just delete the for(; line and the brackets that belong to it.

    If you are unsure how to do that you should probably actually learn the language then before using it.

  3. #3
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Copy Pasta King..

    "its not easy for a newbie.."

    Then stop being a newbie leecher and start learning.. the fuck
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  4. The Following User Says Thank You to 'Bruno For This Useful Post:

    Hell_Demon (05-25-2013)

  5. #4
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    ...Are you serious?

    Method A:
    Code:
    // for( ; ; )
    // {
    ...
    ...
    // }
    Method B:
    Code:
    for( int i=0; i==0; i++)
    {
    ...
    ...
    }
    As said above, don't C&P everything...

Similar Threads

  1. [Solved] How can I delete the Gunsounds ? Or how can I make it lower ?
    By Jiggo in forum CrossFire Help
    Replies: 2
    Last Post: 03-22-2012, 09:36 PM
  2. how can we get dlc for pc:)
    By zerosk83r14 in forum Call of Duty Modern Warfare 3 Help
    Replies: 9
    Last Post: 02-18-2012, 04:38 AM
  3. [Help Request] How can I delete all Trace of Hacks?
    By -EpicSkillz- in forum Combat Arms Help
    Replies: 11
    Last Post: 05-17-2011, 11:13 PM
  4. How can I delete my account?
    By gameman338 in forum General
    Replies: 10
    Last Post: 11-11-2010, 08:58 PM
  5. How can i delete my account?
    By Bushmouseone in forum General
    Replies: 6
    Last Post: 01-20-2009, 01:38 AM

Tags for this Thread