Solved Function Int return 5B , c++

Status
Not open for further replies.

CHEATS GAMES

Solid & Active Platinian
how to change an Int function so that it returns a value of -5000000000, minus 5 billion exceeds the maximum value of int
C++:
int (*orig_get_CurrentBet) (void* instance);
int get_CurrentBet(void* instance) {

    //LOGI(OBFUSCATE("FinishFishing status: %d"), status);
    if (hack0)
    {

        return -5000000000; // public bool get_IsHacked()
    }
    return orig_get_CurrentBet(instance);
}
 
You can't because as you said, that number would need more bits than the ones an int type uses. Try some other smaller value or look for a different way that is not constrained by the int size.
 
Status
Not open for further replies.
Back
Top Bottom