If(jump > 0)
{
return (float)jump;
}
Did not workBecuse you never check if jump is bigger then 0
Replace in your hook
C++:If(jump > 0) { return (float)jump; }
You are returning the return value from a "Jump" function which does not even exist. I don't know how the compiler even allows that. The original value is retrieved by the old_jump functionDid not work
Jump = 4.5;...but ok, please help me... how do I make when the slide bar (seekbar) is at 0 be modified to a specific value? example sildebar(seekbar) 0 = value is 4.5f.. PLEASE HELP MEYou are returning the return value from a "Jump" function which does not even exist. I don't know how the compiler even allows that. The original value is retrieved by the old_jump function
That's what i am telling you. Jump is not a function. You cannot invoke it with (), it's a float variable. You should learn the basics of programming first before trying to hook. Otherwise you will keep copy pasting people's codes instead of creating your ownJump = 4.5;...but ok, please help me... how do I make when the slide bar (seekbar) is at 0 be modified to a specific value? example sildebar(seekbar) 0 = value is 4.5f.. PLEASE HELP ME
Jump = 4.5;...but ok, please help me... how do I make when the slide bar (seekbar) is at 0 be modified to a specific value? example sildebar(seekbar) 0 = value is 4.5f.. PLEASE HELP ME
Jump = 4.5;...but ok, please help me... how do I make when the slide bar (seekbar) is at 0 be modified to a specific value? example sildebar(seekbar) 0 = value is 4.5f.. PLEASE HELP ME
float Jump;
float (*old_jump)(void *instance);
float jump(void *instance) {
if (instance != NULL && Jump) {
return (float) Jump;
}
return old_jump(instance);
}
I've tried this but it doesn't return to the initial value, the value goes to 0...Code:float Jump; float (*old_jump)(void *instance); float jump(void *instance) { if (instance != NULL && Jump) { return (float) Jump; } return old_jump(instance); }
I've tried this but it doesn't return to the initial value, the value goes to 0...
float Jump = 0;
float (*old_jump)(void* instance);
float jump(void* instance){
if(instance != NULL && Jump > 0){
return Jump;
}
return 4.5;
}
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies