Nicker 0 Newbie Poster

Hello,
See the picture:
http://img513.imageshack.us/img513/7496/errorps.png
See the code:

#include <windows.h>
#include <stdio.h>

bool stamina=false;


void LosHacks()
{
    while(1){
		if(GetAsyncKeyState(VK_F6) &1){ //F6
			stamina = !stamina;
		}
		if(stamina==true){
			DWORD dwPlayerPointer = *(DWORD*)0x00F37074;
			if(dwPlayerPointer != 0)
				*(float*)(dwPlayerPointer + 0x10 + 0x2C) = 100;
		}
		Sleep(50);
	}
}

BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
	if(dwReason == DLL_PROCESS_ATTACH)
	{
		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)LosHacks, NULL, NULL, NULL); 
	}
	return TRUE;
}

The code does not work, can you help me ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.