Solved Function Int return 5B , c++

Status
Not open for further replies.

CHEATS GAMES

Solid & Active Platinian
Original poster
Aug 9, 2019
64
18
8
39
Brazil
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);
}
 

Yaskashije

PMT Elite Modder
Staff member
Modding-Team
Sep 9, 2018
4,367
866,768
1,213
Minkowski Space
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.