Pointer adress

There was a game called "plants and zombie"
each time , i want to hack gold , i use cheat engine then find the address and change it ... i have to find those address everytime i want to hack this game
so is the address that showed in cheat engine is the address of "gold" variable or "gold" pointer address ?

i just confuse , like trainer [game hacking program]
each time we lauch trainer it find address of stuff and change the value
how it work ?

for ex :
cheat engine tables : i see they store alot of address and each time i lauch the game , those address changed . hack hp : change value of health address and *bam there you go

i'm study about c++ pointer and find it hard to learn
pointers are variables that contain the address of another variable.
(pointers point to other things too, but for your answer variables is enough)

if you are poking the value into an address then that address is the address of the variable.

if you were to store that address somewhere else, the "somewhere else" would be a pointer to the variable. (it contains the address of the gold variable)

You would then have 2 variables, 1 contains the gold, the other contains the address of gold.


A pointer is basically an index within the memory.

When such a program is trying to find a certain address it usually uses some fixed pattern and calculates the other addresses relative to the address of the pattern.
Topic archived. No new replies allowed.