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

    • Hello Kitty Friends Match v1.0.11 +1 Jailed Cheat [ Auto Win ]
      Modded/Hacked App: Hello Kitty Friends Match By LINE Games
      Bundle ID: com.linegames.hkfm
      App Store Link: https://apps.apple.com/us/app/hello-kitty-friends-match/id6742533643?uo=4

       
       

      🤩 Hack Features

      - Auto Win -> Move a block.
        • Informative
        • Agree
        • Like
      • 8 replies
    • Hello Kitty Friends Match v1.0.11 +1 Cheat [ Auto Win ]
      Modded/Hacked App: Hello Kitty Friends Match By LINE Games
      Bundle ID: com.linegames.hkfm
      App Store Link: https://apps.apple.com/us/app/hello-kitty-friends-match/id6742533643?uo=4

       
       

      🤩 Hack Features

      - Auto Win -> Move a block.
        • Like
      • 4 replies
    • Hunt Royale: Action RPG Battle v3.12.1 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       
       

      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
        • Informative
        • Haha
        • Like
      • 143 replies
    • Hunt Royale: Action RPG Battle v3.12.1 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       


      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
        • Thanks
        • Like
      • 24 replies
    • Grand War: Rome Strategy Games v2.2.4 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Grand War: Rome Strategy Games By HangZhouCaiLingTechnology.Co., Limited
      Bundle ID: com.rome.caesar.war.strategy.conqueror.games.2021
      iTunes Store Link: https://apps.apple.com/us/app/grand-war-rome-strategy-games/id1593989305?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - Unlimited Silver
      - Unlimited Gold
      - Unlimited Medals
        • Informative
        • Agree
        • Winner
        • Like
      • 40 replies
    • Loot Heroes v1.9.2 +28 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Everything -> Currencies, Hero Cards, Hero Skill Points will all freeze.
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - No Attack Delay
      - All Critical Hits
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - Nickname Edit Unlocked
      - No Nickname Filter
      - No Guild Name Filter
      - No Dash Cooldown
      - Unlimited Boosters
      - Auto Play
      - No Camp Upgrade Cost
      - Unlimited Bolts
      - No Ads

      VIP
      - Unlimited Everything -> Currencies, Hero Cards, Hero Skill Points will all increase instead of decrease.
      - Currency Modifier -> Earn or spend some.
      - Unlimited Hero Cards -> Earn some.
      - Unlimited Hero Skill Points -> Earn some.
      - Trophy Modifier -> Earn or lose some to stick to the leaderboard.
      - Guild Score Modifier -> Earn some.
      - Unlimited Event Score -> Earn some.
      - Max Hero Mastery Level
      - Auto Win
      - Battle Pass Unlocked
      - VIP Enabled
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 153 replies
    • Loot Heroes v1.9.2 +28 Cheats [ Unlimited Everything ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Everything -> Currencies, Hero Cards, Hero Skill Points will all freeze.
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - No Attack Delay
      - All Critical Hits
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - Nickname Edit Unlocked
      - No Nickname Filter
      - No Guild Name Filter
      - No Dash Cooldown
      - Unlimited Boosters
      - Auto Play
      - No Camp Upgrade Cost
      - Unlimited Bolts
      - No Ads

      VIP
      - Unlimited Everything -> Currencies, Hero Cards, Hero Skill Points will all increase instead of decrease.
      - Currency Modifier -> Earn or spend some.
      - Unlimited Hero Cards -> Earn some.
      - Unlimited Hero Skill Points -> Earn some.
      - Trophy Modifier -> Earn or lose some to stick to the leaderboard.
      - Guild Score Modifier -> Earn some.
      - Unlimited Event Score -> Earn some.
      - Max Hero Mastery Level
      - Auto Win
      - Battle Pass Unlocked
      - VIP Enabled
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 309 replies
    • Grand War: Rome Strategy Games v2.2.4 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Grand War: Rome Strategy Games By HangZhouCaiLingTechnology.Co., Limited
      Bundle ID: com.rome.caesar.war.strategy.conqueror.games.2021
      iTunes Store Link: https://apps.apple.com/us/app/grand-war-rome-strategy-games/id1593989305?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - Unlimited Silver
      - Unlimited Gold
      - Unlimited Medals
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 64 replies
    • DREDGE v1.5.16 +3 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: DREDGE By Black Salt Games Limited
      Bundle ID: com.blacksaltgames.dredge
      iTunes Store Link: https://apps.apple.com/us/app/dredge/id6526463862?uo=4

       
       

      🤩 Hack Features

      - Full Game & All DLC Unlocked
      - Sell Value Multiplier
      - All Cabin Items Unlocked -> Head into Settings > Controls and toggle the Reset All Controls button.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 80 replies
    • DREDGE v1.5.16 +3 Cheats [ Unlocked ]
      Modded/Hacked App: DREDGE By Black Salt Games Limited
      Bundle ID: com.blacksaltgames.dredge
      iTunes Store Link: https://apps.apple.com/us/app/dredge/id6526463862?uo=4

       
       

      🤩 Hack Features

      - Full Game & All DLC Unlocked
      - Sell Value Multiplier
      - All Cabin Items Unlocked -> Head into Settings > Controls and toggle the Reset All Controls button.
        • Agree
        • Haha
        • Winner
        • Like
      • 27 replies
    • Amikin Village: Magic Sim RPG v1.1.0 +5 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Amikin Village: Magic Sim RPG By HELIO LTD
      Bundle ID: com.heliogames.amikin.survival
      App Store Link: https://apps.apple.com/us/app/amikin-village-magic-sim-rpg/id6478102304?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      - Unlimited Weapon Durability
      - Split Hack
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 326 replies
    • Amikin Village: Magic Sim RPG v1.1.0 +5 Cheats [ Damage + More ]
      Modded/Hacked App: Amikin Village: Magic Sim RPG By HELIO LTD
      Bundle ID: com.heliogames.amikin.survival
      App Store Link: https://apps.apple.com/us/app/amikin-village-magic-sim-rpg/id6478102304?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      - Unlimited Weapon Durability
      - Split Hack
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 111 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