STW error ? help
hi dudes i am making hack for one private server cf but have a problem in stw i am using fallen's stw its undetected but i got this error C2601: 'STW' : local function definitions are illegal when i try to compile
i use this void STW(bool DoSTW)
{
if(DoSTW)
{
DWORD Ptr = *(DWORD*)(CShellBase+SHWPointer);
if(Ptr!=NULL)
{
for(int i = 0;i<64;i++)
{
*(bool*)(Ptr+(i*0x474)+0x468) = 1;
*(bool*)(Ptr+(i*0x474)+0x46C) = 1;
*(bool*)(Ptr+(i*0x474)+0x470) = 1;
}
}
else return;
}
else return;
}
after :
;while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
my mistake ? or what pls help