Jump to content

this error doesn't want to leave me!!!!


Go to solution Solved by Rook,

5 posts in this topic

Recommended Posts

Posted (edited)

my code:

/* Generated using http://armconverter.com/mshookgenerator */
#import <substrate.h>
#import <Foundation/Foundation.h>
#import <mach-o/dyld.h>

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mrpho3nix.mortalkombatx.plist"

inline bool GetPrefBool(NSString *key) {
	return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

int (*old_Currency)(void *self);
int (*old_stamina)(void *self);
bool (*old_character)(void *self);


static int Currency(void *self) {
	return INT_MAX;
}

static int stamina(void *self) {
	return 0;
}

static bool character(void *self) {
	return TRUE;
}

%ctor {
	if(GetPrefBool(@"key1")) {
		MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0xoffset + 1),(void*)Currency,(void**)&old_Currency);
		MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0xoffset + 1),(void*)Currency,(void**)&old_Currency);
		MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0xoffset + 1),(void*)Currency,(void**)&old_Currency);
		MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0xoffset + 1),(void*)Currency,(void**)&old_Currency);
	} else {
}


	if(GetPrefBool(@"key2”)) {
		MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0xoffset + 1),(void*)stamina,(void**)&old_stamina);
	} else {
}


	if(GetPrefBool(@"key3”)) {
		MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0xoffset + 1),(void*)character,(void**)&old_character);
	} else {
}


}

%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.
UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"MortalKombatX Cheats" 
                                                  message:@"\nMortalKombatX Cheats by Mr PHo3niX for iOSGods.com"
                                                 delegate:self 
										cancelButtonTitle:@"Thanks" 
										otherButtonTitles:@"Visit Us", nil]; 
[igcredits show];
[igcredits release]; 
return %orig();
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
	NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
	if([button isEqualToString:@"Visit Us"]) {
		[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com/"]];                                                                                
	}
}
%end

 

the error:

Mrs-Mac:mortalkombatx mrpho3nix$ make package
> Making all for tweak MortalKombatX
==> Preprocessing Tweak.xm
Tweak.xm:47: error: fell off the face of the planet when we found a '}'
make[3]: *** [/Users/mrpho3nix/Desktop/mortalkombatx/.theos/obj/debug/armv7/Tweak.xm.9d68c064.o] Error 22
make[2]: *** [/Users/mrpho3nix/Desktop/mortalkombatx/.theos/obj/debug/armv7/MortalKombatX.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [MortalKombatX.all.tweak.variables] Error 2
Mrs-Mac:mortalkombatx mrpho3nix$

 

Updated by DiDA
Posted (edited)

Remove 1 } after else

 

if(GetPrefBool(@"key3”)) { MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0xoffset + 1),(void*)character,(void**)&old_character); } else { } }

Updated by Crypto
Posted
11 minutes ago, Crypto said:

Remove 1 } after else

 

if(GetPrefBool(@"key3”)) { MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0xoffset + 1),(void*)character,(void**)&old_character); } else { } }

same

  • Solution
Posted

@K1N5 PHo3niX If you can't notice, the quotes inside your keys are special characters which theos doesn't recognise. You seem to be building on a Mac. You should use Xcode editor instead of the normal text editing app.

Make sure your " are normal.

Posted
Just now, DiDA said:

@K1N5 PHo3niX If you can't notice, the quotes inside your keys are special characters which theos doesn't recognise. You seem to be building on a Mac. You should use Xcode editor instead of the normal text editing app.

Make sure your " are normal.

<3

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
  • Our picks

    • Merge Cat Cafe: Decorate v1.1.50 [ +11 Cheats ] Currency Max
      Modded/Hacked App: Merge Cat Cafe: Decorate By StandEgg Co., Ltd
      Bundle ID: com.standegg.mergecatcafe2
      App Store Link: https://apps.apple.com/us/app/merge-cat-cafe-decorate/id6670415194?uo=4

      🤩 Hack Features

      - Gems Freeze
      - Coins Freeze
      - Booster Freeze
      - Box Items Freeze
      - Energy 0 Play Unlimited
      :::: VIP ::::
      - ADS NO
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Booster
      - Unlimited Box Items
      • 0 replies
    • Merge Cat Cafe: Decorate v1.1.50 [ +11 Jailed ] Currency Max
      Modded/Hacked App: Merge Cat Cafe: Decorate By StandEgg Co., Ltd
      Bundle ID: com.standegg.mergecatcafe2
      App Store Link: https://apps.apple.com/us/app/merge-cat-cafe-decorate/id6670415194?uo=4

      🤩 Hack Features

      - Gems Freeze
      - Coins Freeze
      - Booster Freeze
      - Box Items Freeze
      - Energy 0 Play Unlimited
      :::: VIP ::::
      - ADS NO
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Booster
      - Unlimited Box Items
      • 0 replies
    • Crossword Master - Word Puzzle v2.1.0 [ +3 Cheats  ] Currency Max
      Modded/Hacked App: Crossword Master - Word Puzzle By Easybrain Ltd
      Bundle ID: com.easybrain.crossword.puzzles
      App Store Link: https://apps.apple.com/us/app/crossword-master-word-puzzle/id6547858927?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Coins
      - Unlimited Booster
      • 0 replies
    • Crossword Master - Word Puzzle v2.1.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Crossword Master - Word Puzzle By Easybrain Ltd
      Bundle ID: com.easybrain.crossword.puzzles
      App Store Link: https://apps.apple.com/us/app/crossword-master-word-puzzle/id6547858927?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Coins
      - Unlimited Booster
      • 0 replies
    • ZakuzakuSlash +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: ZakuzakuSlash By nekosuko
      Bundle ID: jp.nekosuko.zakuzakuslash
      App Store Link: https://apps.apple.com/us/app/zakuzakuslash/id6749934570?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - XP Multiplier
      - Unlimited Gold -> Will increase instead of decrease.
      • 2 replies
    • Piggy Land 3D v1.2.2 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Piggy Land 3D By PIXON PTE. LTD.
      Bundle ID: farm.piggy.animal.jam.away
      App Store Link: https://apps.apple.com/us/app/piggy-land-3d/id6762121301?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Coin
      - Unlimited Booster
      - Custom Level
      • 1 reply
    • Piggy Land 3D v1.2.2 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Piggy Land 3D By PIXON PTE. LTD.
      Bundle ID: farm.piggy.animal.jam.away
      App Store Link: https://apps.apple.com/us/app/piggy-land-3d/id6762121301?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Coin
      - Unlimited Booster
      - Custom Level
      • 0 replies
    • Dwarfs Diggers: Idle Master v0.7.4 [ +4 Jailed ] Currency Freeze
      Modded/Hacked App: Dwarfs Diggers: Idle Master By BLACK BOX DIGITAL LLP
      Bundle ID: com.bbdigital.idle.dwarfs.master
      App Store Link: https://apps.apple.com/us/app/dwarfs-diggers-idle-master/id6769121279?uo=4

      🤩 Hack Features

      - Currency Freeze
      - Resources Freeze
      - Energy Freeze
      - Troop Drop Unlimited
      • 3 replies
    • Dwarfs Diggers: Idle Master v0.7.4 [ +4 Cheats ] Currency Freeze
      Modded/Hacked App: Dwarfs Diggers: Idle Master By BLACK BOX DIGITAL LLP
      Bundle ID: com.bbdigital.idle.dwarfs.master
      App Store Link: https://apps.apple.com/us/app/dwarfs-diggers-idle-master/id6769121279?uo=4

      🤩 Hack Features

      - Currency Freeze
      - Resources Freeze
      - Energy Freeze
      - Troop Drop Unlimited
      • 1 reply
    • Metal Slug Rush v1.0.0 [ +9 APK MOD ] Currency Max
      Mod APK Game Name: Metal Slug Rush
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.ringgames.msm

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Silver keys
      - Unlimited Golden Keys
      - Unlimited Special Keys
      - Unlimited Blueprint
      - Unlimited Token
      - Unlimited Ticket +3
      • 1 reply
    • Metal Slug Rush v1.0.0 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Metal Slug Rush By REVIVECONTENTS CO.,LTD.
      Bundle ID: com.ringgames.msm
      App Store Link: https://apps.apple.com/us/app/metal-slug-rush/id6775727338?uo=4

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Silver keys
      - Unlimited Golden Keys
      - Unlimited Special Keys
      - Unlimited Blueprint
      - Unlimited Token
      - Unlimited Ticket +3
      • 3 replies
    • Metal Slug Rush v1.0.0 [ +9 jailed ] Currency Max
      Modded/Hacked App: Metal Slug Rush By REVIVECONTENTS CO.,LTD.
      Bundle ID: com.ringgames.msm
      App Store Link: https://apps.apple.com/us/app/metal-slug-rush/id6775727338?uo=4

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Silver keys
      - Unlimited Golden Keys
      - Unlimited Special Keys
      - Unlimited Blueprint
      - Unlimited Token
      - Unlimited Ticket +3
      • 3 replies
×
  • 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