Results 1 to 5 of 5
  1. #1
    EDWINSEE's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Arkansas
    Posts
    125
    Reputation
    10
    Thanks
    127
    My Mood
    Angelic

    i need help with errors

    i keep getting 1 to 3 errors but i use CoderNever and acid base so i give them the credit when i am done i did not copy and paste i type it this is the errors i getting:

    : this line contains a '{' which has not yet been matched
    : error C2601: 'DllMain' : local function definitions are illegal
    : this line contains a '{' which has not yet been matched

    but when i fix those errors i get this error:

    : error C2447: '{' : missing function header (old-style formal list?)

    here is the source i been working on and i will upload the base:

    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" )!= NULL
    && GetModuleHandleA( "ClientFX.fxd" )!= NULL
    && GetModuleHandleA( "CShell.dll" )!= NULL )
    return true;
    return false;
    }
    void PushToConsole(const char* Command) {
    DWORD CNADDIE = 0x007d9200;
    void* Send = ( void* )*( DWORD* )(CNADDIE);
    __asm
    {
    push Command;
    call Send;
    add esp, -3-1+2+6;
    }
    }
    void main()
    {
    bool HackStatus = false;
    while(true);

    {
    if(GetAsyncKeyState(VK_NUMPAD0)<0 && HackStatus == true ){
    PushToConsole("SkelModelStencil 1");
    PushToConsole("ModelDebug_DrawBoxes 1");
    HackStatus = false;
    }
    if(GetAsyncKeyState(VK_NUMPAD0)<0 && HackStatus == false){
    PushToConsole("SkelModelStencil 0");
    PushToConsole("ModelDebug_DrawBoxes 0");
    HackStatus = true;
    }
    if(GetAsyncKeyState(VK_NUMPAD1)<0 && HackStatus == true){
    PushToConsole("WeaponSway 1");
    HackStatus = false;
    }
    if(GetAsyncKeyState(VK_NUMPAD1)<0 && HackStatus == false){
    PushToConsole("WeaponSway 0");
    HackStatus = true;
    }
    if(GetAsyncKeyState(VK_NUMPAD2)<0 && HackStatus == true){
    PushToConsole("PerturbRotationEffect 3.000000");
    PushToConsole("PerturbIncreaseSpeed 3.000000");
    PushToConsole("PerturbWalkPercent 9.000000");
    PushToConsole("PerturbFiringIncreaseSpeed 0.500000");
    HackStatus = false;
    }
    if(GetAsyncKeyState(VK_NUMPAD2)<0 && HackStatus == false){
    PushToConsole("PerturbRotationEffect 0.000000");
    PushToConsole("PerturbIncreaseSpeed 0.000000");
    PushToConsole("PerturbWalkPercent 0.000000");
    PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
    HackStatus = true;
    }
    if(GetAsyncKeyState(VK_NUMPAD3)<0 && HackStatus == true){
    memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
    memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
    memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
    memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
    memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
    HackStatus = false;
    }
    if(GetAsyncKeyState(VK_NUMPAD3)<0 && HackStatus == false){
    memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
    HackStatus = true;
    }
    if(GetAsyncKeyState(VK_NUMPAD4)<0 && HackStatus == true){
    memcpy((LPVOID)0x37466264, "\x0F\x84\xB1\x01\x00\x00", 6);
    HackStatus = false;
    }
    if(GetAsyncKeyState(VK_NUMPAD4)<0 && HackStatus == false){
    memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6);
    HackStatus = true;
    }
    }
    DWORD WINAPI dwHackThread(LPVOID){
    while( !IsGameReadyForHook())
    Sleep(100);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    Last edited by Zoom; 07-24-2010 at 03:48 AM.

  2. #2
    Ali's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Qc, Canada
    Posts
    11,453
    Reputation
    342
    Thanks
    3,514
    My Mood
    Cool
    Virus scans? ; Screenshots ?

  3. #3
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    Why did you put a ; after while(true) ?

    cplusplus.com - The C++ Resources Network

  4. #4
    HaX4LiFe!'s Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    1,639
    Reputation
    22
    Thanks
    1,405
    strange to see a bool like that :/

  5. #5
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,561
    Reputation
    127
    Thanks
    5,912
    My Mood
    Happy
    VM me or any of the CA staff when you are ready for the scans and screenshot.
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [Help Request] I need Help with error
    By iKSAi in forum Alliance of Valiant Arms (AVA) Help
    Replies: 4
    Last Post: 06-28-2011, 02:26 AM
  2. [Help] Need help With errors
    By money001 in forum C++/C Programming
    Replies: 15
    Last Post: 06-09-2011, 11:58 AM
  3. [Help Request] need help with retarded syntax errors
    By .:MUS1CFR34K:. in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 15
    Last Post: 05-17-2011, 01:19 PM
  4. [Help Request] Need Help With A.V.A Error
    By ch1025 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 7
    Last Post: 05-14-2011, 10:15 AM
  5. Need help with this error...
    By Screenlooker in forum Combat Arms Hacks & Cheats
    Replies: 6
    Last Post: 12-27-2008, 03:21 PM