Results 1 to 5 of 5
  1. #1
    street_21's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    450
    Reputation
    -36
    Thanks
    54
    My Mood
    Amazed

    Ajuda com esse erro

    Estou com esse erro alguem que possa solucionalo?
    Por jse possivel postar sem erro...

    Code:
    1>------ Build started: Project: CA Base D3D Menu Selection, Configuration: Debug Win32 ------
    1>Compiling...
    1>Hack.cpp
    1>d:\games\login ca\visual basic project\ca base d3d menu selection\hack.cpp(183) : error C2601: 'Hook' : local function definitions are illegal
    1>        d:\games\login ca\visual basic project\ca base d3d menu selection\hack.cpp(63): this line contains a '{' which has not yet been matched
    1>d:\games\login ca\visual basic project\ca base d3d menu selection\hack.cpp(199) : fatal error C1075: end of file found before the left brace '{' at 'd:\games\login ca\visual basic project\ca base d3d menu selection\hack.cpp(63)' was matched
    1>Build log was saved at "file://d:\Games\Login CA\Visual Basic Project\CA Base D3D Menu Selection\Debug\BuildLog.htm"
    1>CA Base D3D Menu Selection - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Code:
    		}
    	}
        if((*(BYTE *)GameStatus == 1) && Rapidfire == 1 && GetAsyncKeyState(VK_LBUTTON)<0) {
    		memcpy((VOID *)RapidFire, (VOID *)(PBYTE)"\x90\x90", 3);
    	} else if((*(BYTE *)GameStatus == 1) && Rapidfire == 2) {
    		memcpy((VOID *)RapidFire, (VOID *)(PBYTE)"\x90\x90", 3);
    	} else {
    		memcpy((VOID *)RapidFire, (VOID *)(PBYTE)"\x74\x3E", 3);
    
        if((*(BYTE *)GameStatus == 1) && Recoil)
    		memcpy((VOID *)NoRecoil, (VOID *)(PBYTE)"\x90\x90\x90\x90", 2);
    	else
    		memcpy((VOID *)NoRecoil, (VOID *)(PBYTE)"\xD9\x44\x24\x14", 2);
    
    	if(Cross) CrossHair(pDevice, Red);
    
    	if(FPS && !bFPS) {
    		ComandoPush("ShowFPS 1");
    		bFPS = 1;
    	} else if(!FPS && bFPS) {
    		ComandoPush("ShowFPS 0");
    		bFPS = 0;
    	}
    
    	return oPresent(pDevice, a, b, c, d);
    }
    
    DWORD WINAPI Hook(LPVOID lpArgs)
    {
    	DWORD dwD3D9 = 0;
    
    	while(!dwD3D9) {
    		Sleep(100);
    		dwD3D9 = (DWORD)GetModuleHandle("d3d9.dll");
    	}
    
    	DWORD dwVTable[1] = {0};
    	CreateDevice(dwVTable);
    
    	oReset   = (tReset)  DetourCreate((PBYTE) dwVTable[0], (PBYTE) &hkReset, 5);
    	oPresent = (tPresent)DetourCreate((PBYTE) dwVTable[1], (PBYTE) &hkPresent, 5);
    	
    	return FALSE;
    }
    Last edited by Alessandro10; 09-26-2011 at 09:21 AM.

  2. #2
    Templar's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Brazil
    Posts
    3,217
    Reputation
    87
    Thanks
    989
    My Mood
    Angelic
    Posta na area certa porra, parece que não sabe ler.

    Erro de sintaxe...
    Just a wanderer from the beginnings of this site.
    An old Combat Arms' sections active member and hacker (just what I thought when I was a child).

    My IM doesn't work. Send me a private message instead.

    Name changes:
    bruno2204
    The Rev.
    BioHuman
    Element™

  3. #3
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    /Movido para Coding Help.

  4. #4
    Gotosinho's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    136
    Reputation
    10
    Thanks
    28
    My Mood
    Busy
    Erro na sintaxe mesmo

  5. #5
    PikaMucha_Itu's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Itu City
    Posts
    2,391
    Reputation
    59
    Thanks
    4,105
    My Mood
    Goofy
    Quote Originally Posted by The Rev. View Post
    Posta na area certa porra, parece que não sabe ler.

    Erro de sintaxe...
    Tenha paciencia maninho, eles são novatos por aqui.

Similar Threads

  1. [Help Request] Alguem me ajuda Com esses 2 Erros ?
    By !Masacration~' in forum Combat Arms BR Coding Help
    Replies: 7
    Last Post: 09-14-2011, 10:02 AM
  2. [Solved] Ajuda com esses erros.......
    By street_21 in forum Combat Arms BR Coding Help
    Replies: 5
    Last Post: 08-22-2011, 08:51 PM
  3. [Solved] Ajuda com esse erro
    By CoderWait in forum Combat Arms BR Coding Help
    Replies: 4
    Last Post: 08-04-2011, 02:09 PM
  4. [Solved] Ajuda com erro
    By street_21 in forum Combat Arms BR Coding Help
    Replies: 13
    Last Post: 08-03-2011, 01:35 PM
  5. Ajuda com hack's
    By sinehd in forum Combat Arms Help
    Replies: 2
    Last Post: 09-25-2010, 06:31 PM