xTrap detects my own hack
I've just made my first hack, which contains only one functionality (seeing ghost).
When I inject the dll with the injector I get this message:

idk what's wrong, but here's the code for the hack:
Please help me ASAP!
When I inject the dll with the injector I get this message:

idk what's wrong, but here's the code for the hack:
Code:
#include<windows.h>
#define Player 0xBBEA98
#define ghost1 0x88
#define ghost2 0x8C
#define ghost3 0x90
DWORD WINAPI Hack(LPVOID)
{
while(1)
{
DWORD Chell = (DWORD)GetModuleHandleA("Chell.dll");
DWORD pPlayer = *(DWORD*)(Chell + Player);
if (pPlayer)
{
*(float*)(pPlayer + ghost1) = (float)1.0f;
*(float*)(pPlayer + ghost2) = (float)1.0f;
*(float*)(pPlayer + ghost3) = (float)1.0f;
}
Sleep(100);
}
}
bool Check()
{
if(GetModuleHandleA("Chell.dll")!= NULL)
return 1;
return 0;
}
DWORD WINAPI Start(LPVOID)
{
while(!Check()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hack, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Start,0,0,0);
return 1;
}


