Is this soruce code ok?
I know Im a noob
Don't hate.
I'm not getting any build errors, just x trap detects.
Can someone tell me whats wrong for the box/nosky always on hack source?
lauwy said the problem is probably in the source, so if everyone could tell me what's wrong.

Don't hate.
I'm not getting any build errors, just x trap detects.
Can someone tell me whats wrong for the box/nosky always on hack source?
lauwy said the problem is probably in the source, so if everyone could tell me what's wrong.
Code:
#include <windows.h>
void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI Paulsag(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(100);
}
bool boxes = true;
bool nosky = true;
for(;;) {
if (boxes) {
PushToConsole("ModelDebug_DrawBoxes 1");
}
else {
PushToConsole("ModelDebug_DrawBoxes 0");
}
if (nosky) {
PushToConsole("DrawSky 0");
}
else {
PushToConsole("DrawSky 1");
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL,Paulsag, NULL, NULL, NULL);
}
return TRUE;
}
PRESS THANKS
