Results 1 to 4 of 4
  1. #1
    altera's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    19

    it need with open source code

    Hi,

    Im trying to understand this piece of open sources code. I have it working for some part. I have create an ingame menu to turn functions on en off. but i can only turn does on how to turn it off;

    sources code




    for example to turn on the laser i write this to memory :

    if have create an boolean an toggle it to turn on laser ? what is the offset for default

    WriteProcessMemory(CallOfDuty4, (void*)LASER, &Laser, 2, 0);

  2. #2
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    Why the hell are you using WriteProcessMemory? You're injeting the dll into the game, you don't need WriteProcessMemory, you can simply write directly to the addresses...

    *address = value;

    And wtf is "int main(int argc, char *argv[])" on the beginning of you code? It's a dll file...

    You should get a C++ book...


    CoD Minion from 09/19/2012 to 01/10/2013

  3. #3
    altera's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    19
    My code? its not my code i have found source code and i have modify and change it to an dll. Btw my question was not how to write code to memory but what is the original offset too set function off.

  4. #4
    In the immortal words of Clark Whatsisname -- up, up and away!
    MPGH Member
    ZReal's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    In My T-90 tank
    Posts
    1,347
    Reputation
    10
    Thanks
    1,069
    My Mood
    Goofy
    Quote Originally Posted by altera View Post
    My code? its not my code i have found source code and i have modify and change it to an dll. Btw my question was not how to write code to memory but what is the original offset too set function off.
    Sometimes they dont just give you the source man so leechers like you get compiler errors and wont know what to do and its childproof

Similar Threads

  1. [Help] Need help with a source code
    By G4M3RX in forum C++/C Programming
    Replies: 9
    Last Post: 05-05-2011, 04:33 PM
  2. Problem with my source code ..
    By D e a t h h a u n t S in forum Combat Arms EU Help
    Replies: 1
    Last Post: 12-21-2010, 08:19 AM
  3. Hello! i need help with the source code.
    By LatinHacker in forum Combat Arms Help
    Replies: 3
    Last Post: 05-14-2010, 10:32 PM
  4. Replies: 13
    Last Post: 02-22-2010, 10:59 AM
  5. My, NexoN Account Creator with Full Source Code!!
    By CodeHPro in forum Visual Basic Programming
    Replies: 22
    Last Post: 11-08-2009, 10:31 PM