Question about Branch

740headshot Mar 24, 2016

  1. 740headshot

    740headshot Developer XPG Developer
    25/47

    Joined:
    Sep 8, 2013
    Messages:
    157
    Likes Received:
    356
    Trophy Points:
    25
    Gender:
    Male
    Location:
    Germany
    Console:
    Xbox One
    Hi Guys I Have a little Question about Branch
    Ervery time when i try bulid the Trainer with Visual Studio 2010 come a error

    error C2406:`$82240C60´:name undefined in ´<Unknown>´

    here is my Code Cave

    VOID __declspec(naked) CheckAmmo(VOID){
    /*
    82242100 809F003C lwz r4,3Ch(r31)
    82242104 557F043E clrlwi r31,r11,16
    82242108 4BFFEB59 bl 82240C60
    8224210C 93E30004 stw r31,4(r3) Breakpoint
    82242110 57E3043E clrlwi r3,r31,16
    */
    DWORD myPtr;
    __asm{
    mr myPtr,r12
    lwz r4,3Ch(r31)
    clrlwi r31,r11,16
    bl $82240C60
    stw r31,4(r3)
    }
    if(myPtr == 0x8224210C && InfAmmo == TRUE){
    int AmmoValue = 99;
    __asm{
    stw AmmoValue,4(r3)
    }
    }
    __asm{
    $82240C60:
    lis r11,0x8224
    ori r11,r11,0x2110
    mtctr r11
    bctr
    }
    }

    What I make wrong??

    I hope someone can help me.

    Thanks in Advance :yes:
     
  2. 740headshot

    740headshot Developer XPG Developer
    25/47

    Joined:
    Sep 8, 2013
    Messages:
    157
    Likes Received:
    356
    Trophy Points:
    25
    Gender:
    Male
    Location:
    Germany
    Console:
    Xbox One
    ok it´s work please delete this topic

    Thanks :)
     

Share This Page

Close