Hello all im about 25 minutes new to coding c++ and im usng dev-c++
im getting errors :/
heres the code
Code:
/*******************************************************************/
/* */
/* Coded By [MPGH]Blood For www.Mpgh.net */
/* */
/* */
/* Credits: */
/* [MPGH]Blood */
/* [MPGH]Zoom */
/* [MPGH]Void */
/* [MPGH]Why06 */
/* Swiftdude */
/* mmbob */
/* Gellin */
/*******************************************************************/
#include <Windows.h>
void __cdecl PushToConsole(char* szVal )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != false )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x28BCE0) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm_
)
push szVal;
call CONoff;
add esp, 4;
}
}
}
BOOL WINAPI Main (LPVOID)
{
bool boxes = false;
bool nosky = false;
bool worldframe = false;
bool playerframe = false;
bool nogun = false;
bool whitewalls = false;
while(1)
{
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
boxes = !boxes;
}
if(GetAsyncKeyState(VK_NUMPAD2)&1)
{
nosky = !nosky;
}
if(GetAsyncKeyState(VK_NUMPAD3)&1)
{
worldframe = !worldframe;
}
if(GetAsyncKeyState(VK_NUMPAD4)&1)
{
playerframe = !playerframe;
}
if(GetAsyncKeyState(VK_NUMPAD5)&1)
{
nogun = !nogun;
}
if (boxes)
PushToConsole("ModelDebug_DrawBoxes 1");
else
PushToConsole("ModelDebug_DrawBoxes 0");
if (nosky)
PushToConsole("DrawSky 0");
else
PushToConsole("DrawSky 1");
if (worldframe)
PushToConsole("WireFrame 1");
else
PushToConsole("WireFrame 0");
if (playerframe)
PushToConsole("WireFrameModels 1");
else
PushToConsole("WireFrameModels 0");
if (nogun)
PushToConsole("DrawGuns 0");
else
PushToConsole("DrawGuns 1")
if (whitewalls)
PushToConsole("DrawFlat 0")
else
PushToConsole("DrawFlat 1")
Sleep(100);
}
}
bool Ready(void)
{
if( GetModuleHandleA("CShell.dll")!= false)
return true;
return false;
}
DWORD WINAPI dwMainThread(LPVOID)
{
while (!Ready())
Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Mpgh.net CrossFire Hack Base \n\n\nCoded By [MPGH]Blood", "Injected", 0);
system("start https://www.mpgh.net");
CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
}
return TRUE;
}
Error:
C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp In function `void PushToConsole(char*)':
C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp In function `void PushToConsole(char*)':
(Each undeclared identifier is reported only once for each function it appears in.)
26 C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp expected `;' before ')' token
28 C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp `call' undeclared (first use this function)
29 C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp `add' undeclared (first use this function)
29 C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp expected `;' before "esp"
29 C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp At global scope:
32 C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp expected declaration before '}' token
28 C:\Documents and Settings\Nick\Desktop\CrossFire Hack Base1.cpp expected `;' before "CONoff"
__________________________________________________ _______________________________________
I coded white walls in