QuestionHow can i delete "For (; ;)"?

Posts 1–4 of 4 · Page 1 of 1
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
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.
Copy Pasta King..

"its not easy for a newbie.."

Then stop being a newbie leecher and start learning.. the fuck
...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...
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Need help?