Jump to content

Tweak.xm code help errors when compling


Go to solution Solved by Rook,

5 posts in this topic

Recommended Posts

Posted (edited)

Tweak.xm is right here for some reason i get error on MSHookFunction and MSFindSymbol i looked at every tut here and other ios forums i need help for right now am just going to add one code

#import <CoreFoundation/CoreFoundation.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

int (*old__ZN6Player4hurtEP6Entityi)();

int $__ZN6Player4hurtEP6Entityi() {
{
return 999999;
}

MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN6Player4hurtEP6Entityi")),(int*)$__ZN6Player4hurtEP6Entityi,(int**)&old__ZN6Player4hurtEP6Entityi);
}

%hook minecraftpeAppDelegate
- (void)applicationDidBecomeActive:(id)fp8
{
%orig();
UIAlertView *alert = [[uIAlertView alloc]initWithTitle:@"Hack Activated" message:@"Hack by Dex from iOSGods!!!"
delegate:nil cancelButtonTitle:@"Enjoy" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end

Updated by Dex
Posted

Tweak.xm is right here for some reason i get error on MSHookFunction and MSFindSymbol i looked at every tut here and other ios forums i need help for right now am just going to add one code

#import <CoreFoundation/CoreFoundation.h>

#import <substrate.h>

#import <Foundation/Foundation.h>

int (*old__ZN6Player4hurtEP6Entityi)();

int $__ZN6Player4hurtEP6Entityi() {

{

return 999999;

}

MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN6Player4hurtEP6Entityi")),(int*)$__ZN6Player4hurtEP6Entityi,(int**)&old__ZN6Player4hurtEP6Entityi);

}

%hook minecraftpeAppDelegate

- (void)applicationDidBecomeActive:(id)fp8

{

%orig();

UIAlertView *alert = [[uIAlertView alloc]initWithTitle:@"Hack Activated" message:@"Hack by Dex from iOSGods!!!"

delegate:nil cancelButtonTitle:@"Enjoy" otherButtonTitles:nil];

[alert show];

[alert release];

}

%end

show us the error, and the contents of your original tweak.xm

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines