I play this game, I am trying to get enemy UID number, it gives it to me in hex. I am having trouble converting this to hex to a decimal automatically.
CODE
DWORD enemy[1];
memcpy(enemy,(DWORD*)0x00548382,sizeof(DWORD));
char ok[101];
sprintf(ok,"%.08X",enemy[0]);
Print(ok);
}
Print is a function I coded that works just like printf.
Can anyone help me display it in decimal and not hex?
This post has been edited by 12ob0t: 9 Jun, 2007 - 01:32 PM