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");
}
that address probably is static and holds only mp_rust. i think u got the wrong address