Jump to content

%end does not make sense inside block


Go to solution Solved by Ted2,

25 posts in this topic

Recommended Posts

Posted

Here's my code :

  • %hook GADDevice
  • +{bool) jailbroken {
  • Return FALSE;
  • }
  • %end

and my error :

Tweak.xm:56: error: %end does not make sense inside a block
 

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted
6 minutes ago, Archangel04 said:

Post the entire code.

There is a missing } above somewhere in the code 

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Enjoy losing wihtout worrying about money" 
                                                  message:@"Hacked by Orgempire & Demi-God!!" 
                                                 delegate:self 
                                        cancelButtonTitle:@"Okay i'll" 
                                        otherButtonTitles:@" ", nil]; 
[credits show];
[credits release]; 
return %orig;
}
%end

%hook UADSDevice
+(bool) isRooted {
Return FALSE;
}
%end

%hook UADSApiDeviceInfo
+(void) WebViewExposed_isRooted:(id)arg1 {
    arg1 = NULL
}
%end

%hook JailBreakChecks
+(bool) isApplicationCrackd {
Return FALSE;
}
%end

%hook FYB JailbreakStatusProvider
+(bool) isJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isDeviceJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isApplicationTamperedWith {
Return FALSE;
}
%end

%hook GADDevice
+{bool) jailbroken {
Return TRUE;
}
%end

%hook FYBJailbreakStatusProvider
-(id) dictionaryWithKeyValueParameters {
}
%end

%hook MenuScratchCardNode
-(bool) isScratched {
Return TRUE;
}
%end

%hook UserInfo
-(Unsigned int) fp8 getConsumableAmountOfType:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) setConsumableAmountOfType:(int)fp8 Amount:(Unsigned int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) IncrementConsumableAmountOfType:(int)fp8 Amount:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfoDebug
-(void) setDebugIsPayingUser:(bool) arg1 {
    arg1 = NULL
}
%end

%hook UserInfoDebug
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(Void) setIsPayingUser:(bool) arg1 {
    arg1 = TRUE
}
%end

Posted (edited)

Your code w/ fixed message text

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Enjoy losing without worrying about money" 
                                                  message:@"Hacked by Orgempire & Demi-God!!" 
                                                 delegate:self 
                                        cancelButtonTitle:@"Okay I will!" 
                                        otherButtonTitles:@" ", nil]; 
[credits show];
[credits release]; 
return %orig;
}
%end

%hook UADSDevice
+(bool) isRooted {
Return FALSE;
}
%end

%hook UADSApiDeviceInfo
+(void) WebViewExposed_isRooted:(id)arg1 {
    arg1 = NULL
}
%end

%hook JailBreakChecks
+(bool) isApplicationCrackd {
Return FALSE;
}
%end

%hook FYB JailbreakStatusProvider
+(bool) isJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isDeviceJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isApplicationTamperedWith {
Return FALSE;
}
%end

%hook GADDevice
+{bool) jailbroken {
Return TRUE;
}
%end

%hook FYBJailbreakStatusProvider
-(id) dictionaryWithKeyValueParameters {
}
%end

%hook MenuScratchCardNode
-(bool) isScratched {
Return TRUE;
}
%end

%hook UserInfo
-(Unsigned int) fp8 getConsumableAmountOfType:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) setConsumableAmountOfType:(int)fp8 Amount:(Unsigned int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) IncrementConsumableAmountOfType:(int)fp8 Amount:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfoDebug
-(void) setDebugIsPayingUser:(bool) arg1 {
    arg1 = NULL
}
%end

%hook UserInfoDebug
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(Void) setIsPayingUser:(bool) arg1 {
    arg1 = TRUE
}
%end

I'm no genius but I think having the open and closed bracket pro after each other with no return might be causing an issue because this line is completely useless without a return. Maybe had NULL to it.

%hook FYBJailbreakStatusProvider
-(id) dictionaryWithKeyValueParameters {
}
%end

Try this.     (Added a return of 'NULL')

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Enjoy losing without worrying about money" 
                                                  message:@"Hacked by Orgempire & Demi-God!!" 
                                                 delegate:self 
                                        cancelButtonTitle:@"Okay I will!" 
                                        otherButtonTitles:@" ", nil]; 
[credits show];
[credits release]; 
return %orig;
}
%end

%hook UADSDevice
+(bool) isRooted {
Return FALSE;
}
%end

%hook UADSApiDeviceInfo
+(void) WebViewExposed_isRooted:(id)arg1 {
    arg1 = NULL
}
%end

%hook JailBreakChecks
+(bool) isApplicationCrackd {
Return FALSE;
}
%end

%hook FYB JailbreakStatusProvider
+(bool) isJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isDeviceJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isApplicationTamperedWith {
Return FALSE;
}
%end

%hook GADDevice
+{bool) jailbroken {
Return TRUE;
}
%end

%hook FYBJailbreakStatusProvider
-(id) dictionaryWithKeyValueParameters {
Return NULL
}
%end

%hook MenuScratchCardNode
-(bool) isScratched {
Return TRUE;
}
%end

%hook UserInfo
-(Unsigned int) fp8 getConsumableAmountOfType:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) setConsumableAmountOfType:(int)fp8 Amount:(Unsigned int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) IncrementConsumableAmountOfType:(int)fp8 Amount:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfoDebug
-(void) setDebugIsPayingUser:(bool) arg1 {
    arg1 = NULL
}
%end

%hook UserInfoDebug
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(Void) setIsPayingUser:(bool) arg1 {
    arg1 = TRUE
}
%end

Hope it fixes the issue!  (y)

Updated by Fadexz
Added text "(Added a return of NULL)"
Posted
7 minutes ago, Fadexz said:

Your code w/ fixed message text


%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Enjoy losing without worrying about money" 
                                                  message:@"Hacked by Orgempire & Demi-God!!" 
                                                 delegate:self 
                                        cancelButtonTitle:@"Okay I will!" 
                                        otherButtonTitles:@" ", nil]; 
[credits show];
[credits release]; 
return %orig;
}
%end

%hook UADSDevice
+(bool) isRooted {
Return FALSE;
}
%end

%hook UADSApiDeviceInfo
+(void) WebViewExposed_isRooted:(id)arg1 {
    arg1 = NULL
}
%end

%hook JailBreakChecks
+(bool) isApplicationCrackd {
Return FALSE;
}
%end

%hook FYB JailbreakStatusProvider
+(bool) isJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isDeviceJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isApplicationTamperedWith {
Return FALSE;
}
%end

%hook GADDevice
+{bool) jailbroken {
Return TRUE;
}
%end

%hook FYBJailbreakStatusProvider
-(id) dictionaryWithKeyValueParameters {
}
%end

%hook MenuScratchCardNode
-(bool) isScratched {
Return TRUE;
}
%end

%hook UserInfo
-(Unsigned int) fp8 getConsumableAmountOfType:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) setConsumableAmountOfType:(int)fp8 Amount:(Unsigned int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) IncrementConsumableAmountOfType:(int)fp8 Amount:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfoDebug
-(void) setDebugIsPayingUser:(bool) arg1 {
    arg1 = NULL
}
%end

%hook UserInfoDebug
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(Void) setIsPayingUser:(bool) arg1 {
    arg1 = TRUE
}
%end

I'm no genius but I think having the open and closed bracket pro after each other with no return might be causing an issue because this line is completely useless without a return. Maybe had NULL to it.


%hook FYBJailbreakStatusProvider
-(id) dictionaryWithKeyValueParameters {
}
%end

Try this.


%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Enjoy losing without worrying about money" 
                                                  message:@"Hacked by Orgempire & Demi-God!!" 
                                                 delegate:self 
                                        cancelButtonTitle:@"Okay I will!" 
                                        otherButtonTitles:@" ", nil]; 
[credits show];
[credits release]; 
return %orig;
}
%end

%hook UADSDevice
+(bool) isRooted {
Return FALSE;
}
%end

%hook UADSApiDeviceInfo
+(void) WebViewExposed_isRooted:(id)arg1 {
    arg1 = NULL
}
%end

%hook JailBreakChecks
+(bool) isApplicationCrackd {
Return FALSE;
}
%end

%hook FYB JailbreakStatusProvider
+(bool) isJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isDeviceJailbroken {
Return FALSE;
}
%end

%hook JailBreakChecks
+(bool) isApplicationTamperedWith {
Return FALSE;
}
%end

%hook GADDevice
+{bool) jailbroken {
Return TRUE;
}
%end

%hook FYBJailbreakStatusProvider
-(id) dictionaryWithKeyValueParameters {
Return NULL
}
%end

%hook MenuScratchCardNode
-(bool) isScratched {
Return TRUE;
}
%end

%hook UserInfo
-(Unsigned int) fp8 getConsumableAmountOfType:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) setConsumableAmountOfType:(int)fp8 Amount:(Unsigned int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfo
-(void) IncrementConsumableAmountOfType:(int)fp8 Amount:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

%hook UserInfoDebug
-(void) setDebugIsPayingUser:(bool) arg1 {
    arg1 = NULL
}
%end

%hook UserInfoDebug
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(bool) isPayingUser {
Return  TRUE 
}
%end

%hook UserInfo
-(Void) setIsPayingUser:(bool) arg1 {
    arg1 = TRUE
}
%end

Hope it fixes the issue!  (y)

Ughh still gives the same error ! Its so annoying -.- like tell me how to fix when you give error x'D 

Posted

You can usually find answer on the errors but yea I don't really know myself.

Sometimes it'll tell you what line it was on and you just count how many lines down it is on.

Posted
7 minutes ago, Fadexz said:

You can usually find answer on the errors but yea I don't really know myself.

Sometimes it'll tell you what line it was on and you just count how many lines down it is on.

its the 56 one but its just like the others normal hook and end /: thats what i don't get xD

  • Solution
Posted
1 hour ago, Demi-God said:

hook GADDevice
+{bool) jailbroken {
Return TRUE;
}
%end

+{bool) --> Note the "{" instead of "("

 

Also, cleaner code here:

https://ghostbin.com/paste/jnt3a

2 minutes ago, Demi-God said:

its the 56 one but its just like the others normal hook and end /: thats what i don't get xD

Yes obviously, try to code in sublime & then change this to objective C: XN2IlQY.png

 

Then you go to the line 56 & you'll see there's a mistake in it:

Notice the pink thingy: IRpvfiq.png

 

If you don't have sublime, you can always post it in Ghostbin & select Obj C to see what's wrong

Posted
16 minutes ago, Ted2 said:

+{bool) --> Note the "{" instead of "("

 

Also, cleaner code here:

https://ghostbin.com/paste/jnt3a

Yes obviously, try to code in sublime & then change this to objective C: XN2IlQY.png

 

Then you go to the line 56 & you'll see there's a mistake in it:

Notice the pink thingy: IRpvfiq.png

 

If you don't have sublime, you can always post it in Ghostbin & select Obj C to see what's wrong

Thanks a lot ! This helped a lot and i fixed some other mistyped words too, now i'm down to one more error 

Its on this line 


%hook UserInfo
-(unsigned int) fp8 getConsumableAmountOfType:(int)fp12 {
fp8 = 1;
fp12 = 1;
%orig;
}
%end

 

error : expected function after function declarator 


-(unsigned int) fp8 getConsumableAmountOfType:(int)fp12

^

17 minutes ago, Ted2 said:

Also, you returned it TRUE, which I don't think you want. But not sure ofcourse ;)

haha yeah i fixed that one too x'D thanks 

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

    • Rhythm Hive v2025.12.0 +2 Jailed Cheats
      Modded/Hacked App: Rhythm Hive By HYBE IM Co.,Ltd.
      Bundle ID: com.superb.rhv
      iTunes Store Link: https://apps.apple.com/us/app/rhythm-hive/id1537758048
       

      Hack Features:
      - Unlimited Score -> Earn some.


      Jailbreak required hack(s): [Mod Menu Hack] Rhythm Hive v6.1.0 +1 Cheat [ Unlimited Score ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 57 replies
    • Block Kingdom v0.04.70 [ +13 APK MOD ] Cheat Menu
      Mod APK Game Name: Block Kingdom
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.tripledot.blastroyale&hl=en_US

      🤩 Hack Features

      - Cheat Menu / Play Match Then Back Show Menu Button©️
      - Cheat Menu / Between playing Touch [ Goal ] Then Show©️
      - Set LvL
      - TuT Finished
      - ADD Coin
      - ADD Life
      - ADD Inf Life
      - ADS Remove
      - Power Inf
      - Power Freeze
      - Weekly Quest
      - Events
      - Auto Win
      - Auto Play 10x
      • 0 replies
    • Zombie Hunter: Shoot or Dead v0.0.2.9 [ +5 APK MOD ] Never Die
      Mod APK Game Name: Zombie Hunter: Shoot or Dead
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.horus.zombie.war&hl=en_US

       

      🤩 Hack Features

      - HP Max
      - Armor Max
      - M Gun Unlimited Ammo
      - M Gun Unlimited DMG
      - M Gun Fire Rate
      • 0 replies
    • Shadow Knights Idle RPG V53 [ +22 APK MOD ] Currency Max
      Mod APK Game Name: Shadow Knights : Idle RPG
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.cookapps.ShadowKnightsIdleRPG&hl=en

      🤩 Hack Features

      - Unlimited Gems / Achievements Reward
      - Unlimied Gems / Quest Reward
      - Unlimited Gold / Increase Instead Of Decrease
      - Unlimited Soul / Increase Instead Of Decrease
      - Unlimited Token / Earn Some
      - Unlimited Rebirth / Linked With Bounse
      - Unlimited Keys +3 / Increase Instead Of Decrease
      - Shadow Unlock Cost 0
      - Unlimited Gold Drop / Enemy
      - Unlimited Soul Drop / Enemy
      - Level Up Faster / Earn Some
      - Cost 0 / Token Shop
      - Unlimited Reward / Token Shop
      - Quest Claim
      - Dungeon Rewards / Gems Token Items
      - Cost 0 / Shadow LvL Up
      - Cost 0 / Lord LvL Up
      - Cost 0 / ARTIFACT LvL Up
      - Monster Status / DMG HP DEF ATK-Speed ATK-Range
      - Lord Status / DEF Critical ATK-Speed ATK-Range ATK-Splash / Just Upgrade
      - Shadow Status / DMG-Inc HP-Inc ATK-Speed ATK-Range ATK-Splash / Just Upgrade
      - Battle Pass Free / Claim Unlimited
      • 0 replies
    • Tales of Brave doomsday battle v2.1.21 [ +9 APK MOD ] Never Die
      Mod APK Game Name: Tales of Brave doomsday battle
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.tianyou.kingrush&hl=en_US

       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]
      - Never Die
      - ONE HiT KiLL
      - Enemy Movement Speed
      - ATK Speed
      - Bullet Max 20
      - Bullet Size Big
      - Enemy Freeze
      - Wall No Hit Enemy
      • 0 replies
    • Pirate Captain Tides of War TD v2.3.2 [ +12 APK MOD  ] Auto Win
      Mod APK Game Name: Pirate Captain Tides of War TD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.fanqu.b6&hl=en_US

      🤩 Hack Features

      - Diamond Card Active [ ViP ]
      - Ad Card Active
      - Diamond [ Max 10000 Earn With Battle Chest Cost ]
      - Avatar Unlocked
      - Frame unlocked
      - Battle Chest ADS Max [ Easy To Unlock ]
      - Daily Bundle [ Claim Unlimited Free Only ]
      - Weekly Bundle [ Claim Unlimited Free Only ]
      - Monthly Bundle [ Claim Unlimited Free Only ]
      - Golden Silver Premium Keys [ Easy To Get With Bundle ]
      - Attack [ Linked ] Auto Win Both Of Use
      - Auto Win
      • 0 replies
    • Good Coffee, Great Coffee v1.10.3 +8 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Good Coffee, Great Coffee By TAPBLAZE
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.tapblaze.coffeebusiness&hl=en_GB

       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
      • 4 replies
    • Dragon Village Rumble v1.006.020 +3 Jailed Cheats [ God Mode + More ]
      Modded/Hacked App: Dragon Village Rumble By Highbrow
      Bundle ID: com.highbrow.games.dvb.apple
      App Store Link: https://apps.apple.com/us/app/dragon-village-rumble/id6754904783?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Game Speed Multiplier
      • 39 replies
    • Tasty Travels: Merge Game v45.0 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Earn some.
      - Unlimited Energy -> Earn some.
      - Unlock Full Board -> In-game, tap the Shop button.*
      - Level Up Once -> In-game, tap the Shop button.*

      * - Only 1 feature can be enabled at once.
      • 52 replies
    • Good Coffee, Great Coffee v1.10.2 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       


      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
      • 136 replies
    • Merge Studio: Fashion Makeover v4.2.0 +50++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Merge Studio: Fashion Makeover By Paxie Games Oyun ve Yazilim Anonim Sirketi
      Bundle ID: com.paxiegames.mergestudio
      iTunes Store Link: https://apps.apple.com/us/app/merge-studio-fashion-makeover/id1615964753?uo=4


      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Sound button.


      Jailbreak required hack(s): [Mod Menu Hack] Merge Studio: Fashion Makeover v2.3.0 +50++ Cheats [ Debug Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 97 replies
    • God Breaker: Roguelike ARPG v1.1.0 [ +3 Cheats ] Easy Win
      Modded/Hacked App: God Breaker: Roguelike ARPG By GrowKing Inc.
      Bundle ID: com.growking.godslayer
      App Store Link: https://apps.apple.com/us/app/god-breaker-roguelike-arpg/id6746064502?uo=4

      🤩 Hack Features

      - ATK MAX
      - HP MAX
      - DEF MAX
      • 0 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