Jump to content

18 posts in this topic

Recommended Posts

Posted

Hello, I'm trying to follow this tutorial here https://iosgods.com/topic/1737-tutorial-how-to-add-psedittextcell-in-a-patcher/

 

But it seems that it only explains how to use it with only 1 value. I have a (void):(double) , how would my tweak.xm look like if I want to put an argument?

 

This is what I have at the moment :

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/terapref.plist"

#import <UIKit/UIKit.h>

 

inline bool GetPrefBool(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

#include <Foundation/Foundation.h>

 

%hook GNGame

-(void) setMoney:(double)arg1 {

if(GetPrefBool(@"kMoney")) {

arg1 = ;

return %orig;

}

%end

 

NSDictionary *iosgods = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[iosgods objectForKey:@"kMoney"] intValue];

 

}

 

%end

 

I get this error :

 

Tweak.xm:23:8: error: expected expression

arg1 = ;

^

Tweak.xm:28:1: error: void function

'_logos_method$_ungrouped$GNGame$setMoney$' should not

return a value [-Wreturn-type]

return [[iosgods objectForKey:@"kMoney"] intValue];

^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2 errors generated.

Posted
- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}

do you actually read it when I answer in your support topics

Posted

 

- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}
do you actually read it when I answer in your support topics

I'll try that and what do you mean if I read it?

I'll try that and what do you mean if I read it?

Okay I get it now, the thing is you don't quote me so I don't get a notification lol.

Posted

 

- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}
do you actually read it when I answer in your support topics

 

Tweak.xm:22:11: error: unexpected interface name

'NSDictionary': expected expression

sexyass = NSDictionary *elvis = [NSDictionary dictiona...

^

Tweak.xm:22:25: error: use of undeclared identifier 'elvis'

sexyass = NSDictionary *elvis = [NSDictionary dictiona...

^

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"money"] intValue];

^

3 errors generated.

Posted (edited)

@@Crypto

 

ups stacked it

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
Updated by castix
Posted

@@Crypto

 

ups stacked it

 

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];

Putting this :

 

%hook GNGame

- (void)setMoney:(double)sexyass {

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[elvis objectForKey:@"kMoney"] intValue];

}

%end

 

 

Gives me this error :

 

Tweak.xm:22:9: error: assigning to 'double' from incompatible

type 'NSDictionary * _Nullable'

...= [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"kMoney"] doubleValue];

^

2 errors generated.

make[2]: *** [obj/Tweak.xm.b8bb7c1d.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [terahack.all.tweak.variables] Error 2

Posted

Putting this :

%hook GNGame

- (void)setMoney:(double)sexyass {

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[elvis objectForKey:@"kMoney"] intValue];

}

%end

Gives me this error :

Tweak.xm:22:9: error: assigning to 'double' from incompatible

type 'NSDictionary * _Nullable'

...= [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"kMoney"] doubleValue];

^

2 errors generated.

make[2]: *** [obj/Tweak.xm.b8bb7c1d.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [terahack.all.tweak.variables] Error 2

Change elvis to sexyass and doubleValue to intValue

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

    • Gear Defenders v1.1.3 [ +10 Jailed ] Currency Max
      Modded/Hacked App: Gear Defenders By MOBIBRAIN TECHNOLOGY PTE. LTD.
      Bundle ID: com.iogames.gearworld
      App Store Link: https://apps.apple.com/us/app/gear-defenders/id6740892835?uo=4


      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited ADS Tickets
      - Unlimited Draw
      - Unlimited Battle Coins
      - Base HP
      - Gear Speed / Faster Deploy Trop
      - Unlimited Trop / Easy Win
      - ATK / Linked
        • Thanks
        • Like
      • 3 replies
    • Gear Defenders v1.1.3 [ +10 Cheats ] Currency Max
      Modded/Hacked App: Gear Defenders By MOBIBRAIN TECHNOLOGY PTE. LTD.
      Bundle ID: com.iogames.gearworld
      App Store Link: https://apps.apple.com/us/app/gear-defenders/id6740892835?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited ADS Tickets
      - Unlimited Draw
      - Unlimited Battle Coins
      - Base HP
      - Gear Speed / Faster Deploy Trop
      - Unlimited Trop / Easy Win
      - ATK / Linked
        • Winner
        • Like
      • 4 replies
    • Happy Citizens - Mayor Sim v1.4.15 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Happy Citizens - Mayor Sim By MIYA TECH LIMITED
      Bundle ID: com.miyagames.happycitizen.ios
      App Store Link: https://apps.apple.com/ca/app/happy-citizens-mayor-sim/id6745251520?uo=4


      🤩 Hack Features

      - Gems
      - Cash
      - Energy
      - Water
        • Agree
        • Winner
        • Like
      • 15 replies
    • Happy Citizens - Mayor Sim v1.4.15 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Happy Citizens - Mayor Sim By MIYA TECH LIMITED
      Bundle ID: com.miyagames.happycitizen.ios
      App Store Link: https://apps.apple.com/ca/app/happy-citizens-mayor-sim/id6745251520?uo=4

       
      🤩 Hack Features

      - Gems
      - Cash
      - Energy
      - Water
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 24 replies
    • Idle Five - Basketball Manager v1.48.2 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Idle Five - Basketball Manager By Gaminho
      Bundle ID: com.gaminho.idlefivebasketball
      iTunes Store Link: https://apps.apple.com/us/app/idle-five-basketball-manager/id1539155867?uo=4

       

      🤩 Hack Features

      - Currency
      - Resources
      - ViP Active
      - ADS NO
        • Agree
        • Thanks
        • Winner
        • Like
      • 12 replies
    • Idle Five - Basketball Manager v1.48.2 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Idle Five - Basketball Manager By Gaminho
      Bundle ID: com.gaminho.idlefivebasketball
      iTunes Store Link: https://apps.apple.com/us/app/idle-five-basketball-manager/id1539155867?uo=4
       

      🤩 Hack Features

      - Currency
      - Resources
      - ViP Active
      - ADS NO
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 13 replies
    • Domino Dreams™ v1.47.2 [ +10 Cheats ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4



      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]

      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task

      - Ticket Free Max [ Linked With Stars ] LvL Cost

      - Undo Max [ Linked With Stars ] 

      - Gold Card Max [ Linked With Stars ] 

      - Chapter Next [ Play LvL Quit & Win ]

      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]

      - Auto Win LvL [ Play LvL Move Anything ] 

      - Bonus Mod LvL [ ON-OFF ] 

      - Spin Free [ Need One Point only Open Play LvL ]
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 33 replies
    • Domino Dreams™ v1.47.2 [ +10 Jailed ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4


      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]
      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task
      - Ticket Free Max [ Linked With Stars ] LvL Cost
      - Undo Max [ Linked With Stars ] 
      - Gold Card Max [ Linked With Stars ] 
      - Chapter Next [ Play LvL Quit & Win ]
      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]
      - Auto Win LvL [ Play LvL Move Anything ] 
      - Bonus Mod LvL [ ON-OFF ] 
      - Spin Free [ Need One Point only Open Play LvL ]
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 50 replies
    • Merge Clash Tower Defense V14.0 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Merge Clash: Tower Defense By Block Puzzle Games Inc.
      Bundle ID: merge.clash
      iTunes Store Link: https://apps.apple.com/us/app/merge-clash-tower-defense/id1506854108?uo=4


      Hack Features:
      - Gems Max

      - Gold Max

      - DMG Multi

      - ATK Range Multi

      - Critical Multi

      - ATK Tower CD
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 53 replies
    • Merge Clash Tower Defense V14.0 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Merge Clash: Tower Defense By Block Puzzle Games Inc.
      Bundle ID: merge.clash
      iTunes Store Link: https://apps.apple.com/us/app/merge-clash-tower-defense/id1506854108?uo=4


      Hack Features:

      - Gems Max

      - Gold Max

      - DMG Multi

      - ATK Range Multi

      - Critical Multi

      - ATK Tower CD
        • Informative
        • Haha
        • Winner
        • Like
      • 37 replies
    • Goblin Miner: Idle Merger v3.8.0 [ +5 Cheats ] Coins Unlimited
      Modded/Hacked App: Goblin Miner: Idle Merger By ProGamesLab LTD
      Bundle ID: com.goblins.idle.merge.game
      App Store Link: https://apps.apple.com/us/app/goblin-miner-idle-merger/id6751527945?uo=4

      🤩 Hack Features

      - Unlimited Coins / Mine Upgrade
      - Unlimited Goblin Drop / No Limite
      - Goblin LvL Higher / Easy To Skip Time Mine / First Drop Goblin Then Chose Higher LvL
      - Unlimited Magic Dust
      - Ruby Pass
        • Haha
        • Winner
        • Like
      • 3 replies
    • Goblin Miner: Idle Merger v3.8.0 [ +5 Jailed ] Coins Unlimited
      Modded/Hacked App: Goblin Miner: Idle Merger By ProGamesLab LTD
      Bundle ID: com.goblins.idle.merge.game
      App Store Link: https://apps.apple.com/us/app/goblin-miner-idle-merger/id6751527945?uo=4

      🤩 Hack Features

      - Unlimited Coins / Mine Upgrade
      - Unlimited Goblin Drop / No Limite
      - Goblin LvL Higher / Easy To Skip Time Mine / First Drop Goblin Then Chose Higher LvL
      - Unlimited Magic Dust
      - Ruby Pass
        • Agree
        • Thanks
        • Like
      • 5 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