Results 1 to 6 of 6
  1. #1
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted

    GRRRR Stupid memory hacks

    ok ve tried for like 25 mins now
    everything else in my base is good now i just cant figure out this simple
    syntax error.... help? And no im not a C+P Noob. downloaded a few bases and learned a bit ad used a bit of each
    to get my hack done, just havent dont CA ina while.

    Code:
    	
    if(PFunc[3]) {
    	memcpy((VOID *)EspName1, (VOID *)(PBYTE)"\x90\x90", 2);
    	memcpy((VOID *)EspName2, (VOID *)(PBYTE)"\x90\x90", 2);
    	} else {
    	memcpy((VOID *)EspName1, (VOID *)(PBYTE)"\x75\x05", 2);
    	memcpy((VOID *)EspName2, (VOID *)(PBYTE)"\x75\x05", 2);
    	}
    	}
    	_asm popad;
    
    	return pPresent      (pDevice, a, b, c, d);
    	}
    when i remove

    Code:
    return pPresent (pDevice, a, b, c, d);

    i get this:

    syntax error : '__asm'
    ------------------------------------------------

    But i need the return function to tie it all together.
    -------------------------------------------------

    i get these errors when i put the return func back in:
    error C2059: syntax error : '__asm'
    error C2059: syntax error : 'return'
    error C2059: syntax error : '}'
    error C2143: syntax error : missing ';' before '}'
    error C2059: syntax error : '}'
    error C2143: syntax error : missing ';' before '{'
    error C2447: '{' : missing function header (old-style formal list?)

    WTF? lol probably something stupid liki a carat in the wrong spot or some shit

  2. #2
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    494
    Reputation
    104
    Thanks
    625
    Quote Originally Posted by -Bl00d- View Post
    ok ve tried for like 25 mins now
    everything else in my base is good now i just cant figure out this simple
    syntax error.... help? And no im not a C+P Noob. downloaded a few bases and learned a bit ad used a bit of each
    to get my hack done, just havent dont CA ina while.

    Code:
    	
    if(PFunc[3]) {
    	memcpy((VOID *)EspName1, (VOID *)(PBYTE)"\x90\x90", 2);
    	memcpy((VOID *)EspName2, (VOID *)(PBYTE)"\x90\x90", 2);
    	} else {
    	memcpy((VOID *)EspName1, (VOID *)(PBYTE)"\x75\x05", 2);
    	memcpy((VOID *)EspName2, (VOID *)(PBYTE)"\x75\x05", 2);
    	}
    	}
    	_asm popad;
    
    	return pPresent      (pDevice, a, b, c, d);
    	}
    when i remove

    Code:
    return pPresent (pDevice, a, b, c, d);

    i get this:

    syntax error : '__asm'
    ------------------------------------------------

    But i need the return function to tie it all together.
    -------------------------------------------------

    i get these errors when i put the return func back in:
    error C2059: syntax error : '__asm'
    error C2059: syntax error : 'return'
    error C2059: syntax error : '}'
    error C2143: syntax error : missing ';' before '}'
    error C2059: syntax error : '}'
    error C2143: syntax error : missing ';' before '{'
    error C2447: '{' : missing function header (old-style formal list?)

    WTF? lol probably something stupid liki a carat in the wrong spot or some shit
    First of all, every non-void function must return something. Just getting that out there. Next, we need the entire function to see where you fucked up on your brackets.

    Oh no! Vortex is gay!

  3. The Following User Says Thank You to Saltine For This Useful Post:

    [MPGH]Flengo (10-28-2012)

  4. #3
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    16,016
    Reputation
    3421
    Thanks
    11,332
    My Mood
    Happy
    You can't remove the return value for Present. You need it there.

    Code:
    return pPresent (pDevice, a, b, c, d);
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  5. #4
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    Quote Originally Posted by Flengo View Post
    You can't remove the return value for Present. You need it there.

    Code:
    return pPresent (pDevice, a, b, c, d);
    i know that, i removed it to see if i made the error in that small bit but i didnt.





    solved the problem

    the extra } in red is what was fucking it up
    thank you though guys
    Code:
    	
    if(PFunc[3]) {
    	memcpy((VOID *)EspName1, (VOID *)(PBYTE)"\x90\x90", 2);
    	memcpy((VOID *)EspName2, (VOID *)(PBYTE)"\x90\x90", 2);
    	} else {
    	memcpy((VOID *)EspName1, (VOID *)(PBYTE)"\x75\x05", 2);
    	memcpy((VOID *)EspName2, (VOID *)(PBYTE)"\x75\x05", 2);
    	}
    	}
    	_asm popad;
    
    	return pPresent      (pDevice, a, b, c, d);
    	}

  6. #5
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    524
    Reputation
    151
    Thanks
    1,891
    My Mood
    Amused
    Next time, learn the basics of C++, you wouldn't be making these threads here if you had.

    Request Close, /Solved @Sperm Bubble Boi @Apeiron
    Reversing is the only way to move forward.

  7. #6
    [SMA] Paradise`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB
    Posts
    8,888
    Reputation
    1727
    Thanks
    2,991
    My Mood
    Amused
    Quote Originally Posted by -Bl00d- View Post
    i know that, i removed it to see if i made the error in that small bit but i didnt.



    solved the problem

    the extra } in red is what was fucking it up
    thank you though guys
    Code:
    	
    if(PFunc[3]) {
    	memcpy((VOID *)EspName1, (VOID *)(PBYTE)"\x90\x90", 2);
    	memcpy((VOID *)EspName2, (VOID *)(PBYTE)"\x90\x90", 2);
    	} else {
    	memcpy((VOID *)EspName1, (VOID *)(PBYTE)"\x75\x05", 2);
    	memcpy((VOID *)EspName2, (VOID *)(PBYTE)"\x75\x05", 2);
    	}
    	}
    	_asm popad;
    
    	return pPresent      (pDevice, a, b, c, d);
    	}
    I guess this is solved.

    /Solved.
    /Closed.

Similar Threads

  1. Wats possible and not possible through memory hacking?
    By ClanTag in forum C++/C Programming
    Replies: 13
    Last Post: 07-13-2009, 06:48 PM
  2. where can i find memory hacking software?
    By headsup in forum General Hacking
    Replies: 4
    Last Post: 06-22-2009, 09:57 AM
  3. I'm Cracking that stupid Gun hack!
    By domer in forum CrossFire Hacks & Cheats
    Replies: 4
    Last Post: 04-30-2009, 07:04 PM
  4. Memory Hacking (the ones that works/doesn't work)
    By Kuro Tenshi in forum Combat Arms Europe Hacks
    Replies: 2
    Last Post: 04-12-2009, 02:36 AM
  5. Memory Hacking Software (MHS)
    By ElmoCA in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 02-04-2009, 05:56 PM