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

    • Royal Kingdom v19315 [ +10 Jailed ] Auto Win
      Modded/Hacked App: Royal Kingdom By Dream Games Teknoloji Anonim Sirketi
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/us/app/royal-kingdom/id1606549505?uo=4


      Hack Features:

      - Coins [ Win Match ]

      - Potions

      - Lives Free

      - Booster Max

      - ViP Frame Unlock

      - Kingdom Pass Free

      - District unlock [ One Task Only ]

      - Auto Win [ Just One Move ]

      - Colour Spawn [ Blue Green Red Yellow Pink Orange ] Choose One Only


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 65 replies
    • Royal Kingdom v19315 [ +10 Cheats ] Auto Win
      Modded/Hacked App: Royal Kingdom By Dream Games Teknoloji Anonim Sirketi
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/us/app/royal-kingdom/id1606549505?uo=4



      Hack Features:
      - Coins [ Win Match ]

      - Potions

      - Lives Free

      - Booster Max

      - ViP Frame Unlock

      - Kingdom Pass Free

      - District unlock [ One Task Only ]

      - Auto Win [ Just One Move ]

      - Colour Spawn [ Blue Green Red Yellow Pink Orange ] Choose One Only


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Thanks
        • Winner
      • 47 replies
    • Piggy Kingdom - Match 3 Games v2.1.4 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Piggy Kingdom - Match 3 Games By OLLEYO PTE. LTD.
      Bundle ID: com.olleyo.piggy.match
      iTunes Store Link: https://apps.apple.com/us/app/piggy-kingdom-match-3-games/id1635337354?uo=4


      🚀 Hack Features

      - Coins

      - Lives

      - Build Coins

      - Moves

      - Booster

      - Color Move Only [ Without Matching Move Anywhere ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 12 replies
    • Piggy Kingdom - Match 3 Games v2.1.4 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Piggy Kingdom - Match 3 Games By OLLEYO PTE. LTD.
      Bundle ID: com.olleyo.piggy.match
      iTunes Store Link: https://apps.apple.com/us/app/piggy-kingdom-match-3-games/id1635337354?uo=4


      🚀 Hack Features

      - Coins

      - Lives

      - Build Coins

      - Moves

      - Booster

      - Color Move Only [ Without Matching Move Anywhere ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 15 replies
    • Puzzle Town Mysteries v3.01 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Puzzle Town Mysteries By Haiku Games Co
      Bundle ID: com.haiku.puzzle.minigame.set.block.slide.games.mysteries
      App Store Link: https://apps.apple.com/us/app/puzzle-town-mysteries/id6738405781?uo=4


      🤩 Hack Features

      - Coins

      - Stars

      - Booster

      - Diamond Keys Freeze

      - Energy

      - All Puzzle Unlocked

      - Golden Pass
      • 0 replies
    • Puzzle Town Mysteries v3.01 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Puzzle Town Mysteries By Haiku Games Co
      Bundle ID: com.haiku.puzzle.minigame.set.block.slide.games.mysteries
      App Store Link: https://apps.apple.com/ph/app/puzzle-town-mysteries/id6738405781?uo=4

       
      🤩 Hack Features

      - Coins

      - Stars

      - Booster

      - Diamond Keys Freeze

      - Energy

      - All Puzzle Unlocked

      - Golden Pass
      • 0 replies
    • Candy Crush Friends Saga Cheats v4.12.0 +3
      Modded/Hacked App: Candy Crush Friends Saga By King
      Bundle ID: com.midasplayer.apps.candycrush4
      iTunes Store Link: https://itunes.apple.com/us/app/candy-crush-friends-saga/id1225867923?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Moves (Won't subtract when use)
      - Infinite Lives (Won't subtract when quit lose)
      - Infinite Boosters (Won't subtract when use)


      Hack Download Link: https://iosgods.com/topic/80252-arm64-candy-crush-friends-saga-cheats-v109-2/
        • Agree
        • Haha
        • Thanks
        • Like
      • 629 replies
    • Mimo: Learn Coding/Programming v9.13.0 Jailed Mod +1
      Modded/Hacked App: Mimo: Learn to Code By Mimohello GmbH
      Bundle ID: com.getmimo.mimo
      iTunes Store Link: https://itunes.apple.com/us/app/mimo-learn-to-code/id1133960732?mt=8&uo=4&at=1010lce4


      Hack Features:
      - Premium
      - All Chapters Unlocked
       

      Hack Download Link: https://iosgods.com/topic/68649-arm64-mimo-learn-to-code-v312-jailed-mod-2/


      Credits:
      - @Laxus
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 1,209 replies
    • Demon Hunter Idle Cheats v1.11.0 +3
      Modded/Hacked App: Demon Hunter Idle By MOBIRIX
      Bundle ID: com.mobirix.mbpdh
      iTunes Store Link: https://apps.apple.com/us/app/demon-hunter-idle/id6472879858?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Freeze Currencies*

      *NOTE: Do not abuse or buy ViP for just this cheat


      iOS Hack Download Link: https://iosgods.com/topic/183710-demon-hunter-idle-cheats-v102-3/
        • Agree
        • Haha
      • 164 replies
    • Seven Hearts Cheats v1.3.352 +6 [ Always Win & More ]
      Modded/Hacked App: Seven Hearts By BROKKSINDRI Co.,LTD.
      Bundle ID: com.brokksindri.sevenhearts.ios.kr
      iTunes Store Link: https://apps.apple.com/us/app/seven-hearts/id1525657053?uo=4


      Hack Features:
      - Infinite Coins
      - Infinite Mana
      - Instant Deploy (Enable before Battle)
      - God Mode (Tower)
      - Always Win (Quit / Surrender the Game)
      - Always 3 Stars


      iOS Hack Download Link: https://iosgods.com/topic/145909-seven-hearts-cheats-v1280-6-always-win-more/
        • Winner
        • Like
      • 341 replies
    • Potion Punch 2 Cheats v2.9.71 +1
      Modded/Hacked App: Potion Punch 2 by Monstronauts Inc.
      Bundle ID: com.monstronauts.potionpunch2
      iTunes Store Link: https://apps.apple.com/us/app/potion-punch-2/id1463550435?uo=4&at=1010lce4


      Hack Features:
      - Infinite Currencies
      - Free iAP (Turn this on and use with Free iAP Tweak)


      iOS Hack Download Link: https://iosgods.com/topic/112395-arm64-potion-punch-2-cheats-v102-2/
      • 95 replies
    • Fun Run 3 - Multiplayer Games Cheats v4.48.0 +1
      Modded/Hacked App: Fun Run 3: Arena Running Game By Dirtybit
      Bundle ID: com.dirtybit.fra
      iTunes Store Link: https://itunes.apple.com/us/app/fun-run-3-arena-running-game/id1118878857?mt=8&uo=4&at=1010lce4


      Hack Features:
      - God Mode
       

      Hack Download Link: https://iosgods.com/topic/75790-arm64-fun-run-3-arena-running-game-cheats-v210-1/
        • Informative
      • 1,284 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