google-site-verification: googlebaca44933768a824.html trying add pointer to adddress - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

trying add pointer to adddress

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    trying add pointer to adddress

    hi all, i need a small hel for try this code:

    int CS_H = *(int*)0x533d4c4;
    if (cvar.test)
    {
    if(cvar.fontstyle == 1)
    {
    F_TEST.Print(x+100,y+49,255,255,255,FL_OUTLINE, "- %i4,1f-",CS_H);
    }
    }
    the proble is the next, i try add a pointer to this address 0x533d4c4 but no understad the method for add a pointer to adress ( in c++), the poiinter for this address is this 5fc

    i need mmm this: 0x533d4c4+5fc, but this no work, any solution for add a pointer for this addres?

    thanks

    #2
    may help
    Code:
        template <class T> inline T __cdecl MakePtr(void* urbase,void* offset = 0 )
        {
            unsigned long aaa = reinterpret_cast<unsigned long>(urbase);
            unsigned long bbb = reinterpret_cast<unsigned long>(offset);
            unsigned long ccc = (offset == 0) ? aaa : aaa + bbb;
            void*         ddd = reinterpret_cast<void*>(ccc);
            return reinterpret_cast<T>(ddd);
        }






    gibs coins @
    1KatP9B8KG7mvcoFhdLGua1isG88nYZE8C

    Comment

    Working...
    X