Whats Wrong With my Code?
DWORD Ammo;
void Record()
{
if (GetAsyncKeyState(VK_F8)) //record ammo
{
MessageBeep(MB_ICONINFORMATION);
Ammo=*(int*)ADR_UnliAmmo;
}
void UnliAmmoOn()
{
if(GetAsyncKeyState(VK_F5) &1) //on
{
MessageBeep(MB_ICONINFORMATION);
*(int*)ADR_UnliAmmo = 0;
}
void UnliAmmoOff()
{
if(GetAsyncKeyState(VK_F6) &1) //off
{
MessageBeep(MB_ICONINFORMATION);
*(int*)ADR_UnliAmmo = Ammo ;
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
record();
UnliAmmoOn();
UnliAmmoOff();
}
if(*outgame)
{
}
Sleep(200); //prevent for overloading the cpu
}
}
//----------------------------------------------------------
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Made By: ", "Credit on: !", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
its says here that:
In function 'UnliAmmoOff':
[Error] expected declaration or statement at end of input
In function 'UnliAmmoOn':
[Error] expected declaration or statement at end of input
In function 'Record':
Error] expected declaration or statement at end of input
whats wrong? please help! tnx!