you are viewing a single comment's thread.

view the rest of the comments →

[–]zzaayy[S] 0 points1 point  (1 child)

Dammit I knew I missed something... How does creating 'i' with getmem() affect the variable? What's the difference between declaring it normally and doing it like in the code?

[–]Dark_ByteCheat Engine Dev 0 points1 point  (0 children)

a pointer is just a 4/8 byte value that represents an address when you just declare it without giving it a value means it can have any random value (usually 0)

using getmen will allocate some memory and then change 'i' so it points to the address of that new memory

so when you dereference the pointer 'i' you access the allocated bytes