Results 1 to 4 of 4
  1. #1
    intervention61's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    285
    Reputation
    10
    Thanks
    875
    My Mood
    Cool

    Reading Memory Problem / If

    ok, the address is correct, have tested it, it doesnt do what its supposed to, for all maps it just says current map is rust even tho if im not on rust.

    Help pls how do i get this to work

    Code:
    char* MapName = (char*)0x08F11F8;
                    if( MapName = "mp_rust" ) {
                        SendCommandToConsole("say ^3NEXT MAP IS WASTELAND");
                    } else if( MapName == "mp_highrise") {
                        SendCommandToConsole("say ^3CURRENT MAP IS HIGHRISE");
                    } else if( MapName == "mp_boneyard") {
                        SendCommandToConsole("say ^3CURRENT MAP IS SCRAPYARD");
                    }

  2. #2
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127
    that address probably is static and holds only mp_rust. i think u got the wrong address

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

    intervention61 (07-31-2011)

  4. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,669
    My Mood
    Breezy
    Current map in MW2 (char[64] array) - CGS_T + 0x14C.

    Assuming your trying to hack AlterIW:
    Code:
    // AlterIW: CGS_T - 0x7F0C78
    // Steam: CGS_T - 0x7F1CF8
    char mapName[64];
    int addy_mapName = 0x7F0C78 + 0x14C;
    for(int i = 0; i < 64; i++)
         mapName[i] = (char)(addy_mapName + i);
    // Some craps like that, there's probably a better way to read
    // an array on an injected DLL
    Last edited by master131; 07-30-2011 at 10:17 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  5. The Following User Says Thank You to master131 For This Useful Post:

    intervention61 (07-31-2011)

  6. #4
    intervention61's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    285
    Reputation
    10
    Thanks
    875
    My Mood
    Cool
    nvm, its working now
    ty.
    Code:
    char* MapName = (char*)0x08F11F8;
                    if (strcmp(MapName,"mp_rust") == 0 ) {
                        SendCommandToConsole("say ^3NEXT MAP IS WASTELAND");
    				} else if (strcmp(MapName,"mp_highrise") == 0 ) {
                        SendCommandToConsole("say ^3CURRENT MAP IS HIGHRISE");
    				} else if (strcmp(MapName,"mp_boneyard") == 0 ) {
                        SendCommandToConsole("say ^3CURRENT MAP IS SCRAPYARD");
                    }

Similar Threads

  1. Memory problem plz help!!!
    By dubs in forum General
    Replies: 12
    Last Post: 04-30-2010, 09:55 PM
  2. Some Memory Problem 01xffff05
    By Rhynn0 in forum Combat Arms Help
    Replies: 3
    Last Post: 12-23-2009, 01:01 PM
  3. [READ] Attachment Problems!
    By cyanmage in forum Suggestions, Requests & General Help
    Replies: 3
    Last Post: 08-23-2009, 12:49 PM
  4. [Request] Write/Read Memory Tutorial
    By Infection_X in forum Visual Basic Programming
    Replies: 1
    Last Post: 08-15-2008, 06:11 PM
  5. Ventrilo Read Memory
    By Imperceptus in forum General Game Hacking
    Replies: 0
    Last Post: 04-13-2008, 05:27 AM