Jump to content

Compiling error MS


Ted2

48 posts in this topic

Recommended Posts

  • Replies 47
  • Created
  • Last Reply

Alright,

________________

 

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
 
%hook ShopViewController
-(bool) UseDailyBike {
if(GetPrefBool(@"kDailyBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseUSABike {
if(GetPrefBool(@"kUsaBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseUKBike {
if(GetPrefBool(@"kEnglandBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseAustraliaBike {
if(GetPrefBool(@"kAustraliaBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseNetherlandsBike {
if(GetPrefBool(@"kNetherlandsBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseFranceBike {
if(GetPrefBool(@"kFranceBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseGermanyBike {
if(GetPrefBool(@"kGermanyBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseBrazilBike {
if(GetPrefBool(@"kBrazilBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseSpainBike {
if(GetPrefBool(@"kSpainBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseJapanBike {
if(GetPrefBool(@"kJapanBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseBelgiumBike {
if(GetPrefBool(@"kBelgiumBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseItalyBike {
if(GetPrefBool(@"kItalyBike")) {
    return true;
}
return %orig;
}
%end
 
 
%hook ShopViewController
-(bool) UseArgentiniaBike {
if(GetPrefBool(@"kArgentiniaBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseMexicoBike {
if(GetPrefBool(@"kMexicoBike")) {
    return true;
}
return %orig;
}
%end
 
 
%hook ShopViewController
-(bool) UseSuperPenguin {
if(GetPrefBool(@"kSuperBike")) {
    return true;
}
return %orig;
}
%end
 
 
%hook ShopViewController
-(bool) UsePenguinGirl {
if(GetPrefBool(@"kNormalBike")) {
    return true;
}
return %orig;
}
%end
 
 
%hook ShopViewController
-(bool) UseKidsMode {
if(GetPrefBool(@"kKidsBike")) {
    return true;
}
return %orig;
}
%end
 
 
%hook ShopViewController
-(bool) UseMagicPenguin {
if(GetPrefBool(@"kGhostBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseUltraBike {
if(GetPrefBool(@"kUltraBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseThanksgivingBike {
if(GetPrefBool(@"kThanlsgivingBike")) {
    return true;
}
return %orig;
}
%end
 
 
%hook ShopViewController
-(bool) UseXmasBike {
if(GetPrefBool(@"kSantaBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseEasterBike {
if(GetPrefBool(@"kEasterBike")) {
    return true;
}
return %orig;
}
%end
 
 
%hook ShopViewController
-(bool) UseNinjaBike {
if(GetPrefBool(@"kNinjaBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseCopBike {
if(GetPrefBool(@"kPoliceBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseRetroBike {
if(GetPrefBool(@"kRetroBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseZombieBike {
if(GetPrefBool(@"kZombie")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseConstructorBike {
if(GetPrefBool(@"kArmyBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseHalloweenBike {
if(GetPrefBool(@"kHalloweenBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseEasyBike {
if(GetPrefBool(@"kGirlBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseBronzeBike {
if(GetPrefBool(@"kBronzeBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseSilverBike {
if(GetPrefBool(@"kSilverBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseGoldBike {
if(GetPrefBool(@"kGoldBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseAcrobaticBike {
if(GetPrefBool(@"kAcrobaticBike")) {
    return true;
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseBeatBike {
if(GetPrefBool(@"kHogBike")) {
    return true
}
return %orig;
}
%end
 
%hook ShopViewController
-(bool) UseSpamBike {
if(GetPrefBool(@"kHighTechBike")) {
    return true;
}
return %orig;
}
 
%end

Show us your tweak.xm so we can help.

There it is, a bit long.

Link to comment
Share on other sites

Ouch!

 

It could have been coded better. Did you make a key for each bike?

Haha, my bad just started coding ;)

 

And with key do you mean in the 'prefbundle.plist' ?

 

I have for example this for each bike:

'<key>cell</key>

<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>prefbundle</string>
<key>key</key>
<string>kDailyBike</string>
<key>label</key>
<string>Daily Bike</string> '
Link to comment
Share on other sites

 

Haha, my bad just started coding ;)

 

And with key do you mean in the 'prefbundle.plist' ?

 

I have for example this for each bike:

'<key>cell</key>

<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>prefbundle</string>
<key>key</key>
<string>kDailyBike</string>
<key>label</key>
<string>Daily Bike</string> '

 

Do they have their own keys though?

 

Like kUsaBike, kAnotherBike etc?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • West Escape v1.0.15 +7++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: West Escape By Estoty LLC
      Bundle ID: com.western.escape
      iTunes Store Link: https://apps.apple.com/us/app/west-escape/id6474681724?uo=4


      Hack Features:
      - Unlimited Everything
      - God Mode
      - God Mode - Horse
      - One-Hit Kill
      - No Ads -> Head into Settings and toggle the Discord Support button.


      Jailbreak required hack(s): [Mod Menu Hack] West Escape v1.0.13 +7++ Cheats [ Unlimited Everything ] - 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/
      • 44 replies
    • Merge 2 Survive: Zombie Game v1.1.2 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Merge 2 Survive: Zombie Game By Pixodust Aplicativos LTDA
      Bundle ID: com.pixodust.games.merge.survive.puzzle.game
      iTunes Store Link: https://apps.apple.com/us/app/merge-2-survive-zombie-game/id6468487156?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Diamonds
      - Unlimited Energy


      Jailbreak required hack(s): [Mod Menu Hack] Merge 2 Survive: Zombie Game v1.0.3 +3 Cheats [ Unlimited Currencies ] - 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/
      • 10 replies
    • Merge 2 Survive: Zombie Game v1.1.2 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Merge 2 Survive: Zombie Game By Pixodust Aplicativos LTDA
      Bundle ID: com.pixodust.games.merge.survive.puzzle.game
      iTunes Store Link: https://apps.apple.com/us/app/merge-2-survive-zombie-game/id6468487156?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Diamonds
      - Unlimited Energy


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Merge 2 Survive: Zombie Game v1.0.3 +3 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA 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/
      • 16 replies
    • West Escape v1.0.15 +7++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: West Escape By Estoty LLC
      Bundle ID: com.western.escape
      iTunes Store Link: https://apps.apple.com/us/app/west-escape/id6474681724?uo=4


      Hack Features:
      - Unlimited Everything
      - God Mode
      - God Mode - Horse
      - One-Hit Kill
      - One-Hit w/ Tool
      - No Tool Level Requirement
      - No Ads -> Head into Settings and toggle the Discord Support button.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] West Escape v1.0.13 +5++ Cheats [ Unlimited Everything ] - Free Non-Jailbroken IPA 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
      • 25 replies
    • Hoosegow: Prison Survival v2.6.7 +40++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Hoosegow: Prison Survival By D.DREAM GAMES LLC
      Bundle ID: com.ddreamgames.hoosegow
      iTunes Store Link: https://apps.apple.com/us/app/hoosegow-prison-survival/id1587312327?uo=4


      Hack Features:
      - Debug Menu -> Head into Settings and toggle the Report a problem button.


      Jailbreak required hack(s): [Mod Menu Hack] Hoosegow: Prison Survival v2.2.4 +40++ 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/
      • 57 replies
    • Hoosegow: Prison Survival v2.6.7 +40++ Cheats [ Debug Menu ]
      Modded/Hacked App: Hoosegow: Prison Survival By D.DREAM GAMES LLC
      Bundle ID: com.ddreamgames.hoosegow
      iTunes Store Link: https://apps.apple.com/us/app/hoosegow-prison-survival/id1587312327?uo=4


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


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Hoosegow: Prison Survival v2.2.4 +40++ Jailed Cheats [ Debug Menu ] - Free Non-Jailbroken IPA 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/
      • 36 replies
    • Supermarket Manager Simulator v1.0.9 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Supermarket Manager Simulator By Digital Melody S.A.
      Bundle ID: com.dmg.supermarket.simulator
      iTunes Store Link: https://apps.apple.com/us/app/supermarket-manager-simulator/id6479982512?uo=4


      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      - No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Supermarket Manager Simulator v1.0.6 +3 Cheats [ Unlimited Currencies ] - 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/
      • 48 replies
    • Supermarket Manager Simulator v1.0.9 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Supermarket Manager Simulator By Digital Melody S.A.
      Bundle ID: com.dmg.supermarket.simulator
      iTunes Store Link: https://apps.apple.com/us/app/supermarket-manager-simulator/id6479982512?uo=4


      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      -- No Ads


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Supermarket Manager Simulator v1.0.6 +3 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA 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/
      • 21 replies
    • Stealth Master: Assassin Ninja v1.12.15 +4++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Stealth Master: Assassin Ninja By SayGames LTD
      Bundle ID: io.highcore.stealthmaster
      iTunes Store Link: https://apps.apple.com/us/app/stealth-master-assassin-ninja/id1518389230
       

      Hack Features:
      - God Mode
      - One-Hit Kill
      - Unlimited Currencies
      - All Characters Unlocked


      Jailbreak required hack(s): https://iosgods.com/topic/173267-stealth-master-assassin-ninja-v1128-4-cheats-damage-defence/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 13 replies
    • Mighty DOOM v1.13.1 +2 Jailed Cheats [ God & OHK ]
      Modded/Hacked App: Mighty DOOM By Bethesda
      Bundle ID: com.bethsoft.ubu
      iTunes Store Link: https://apps.apple.com/us/app/mighty-doom/id1535673981
       

      Hack Features:
      - God Mode -> You will take damage but you won't die.
      - One-Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/170017-mighty-doom-v100-2-cheats-damage-multiplier/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 127 replies
    • Mighty DOOM v1.13.1 +2 Cheats [ Damage Multiplier ]
      Modded/Hacked App: Mighty DOOM By Bethesda
      Bundle ID: com.bethsoft.ubu
      iTunes Store Link: https://apps.apple.com/us/app/mighty-doom/id1535673981
       

      Hack Features:
      - God Mode -> You will take damage but you won't die.
      - Damage Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/170103-mighty-doom-v100-2-jailed-cheats-one-hit-kill/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 157 replies
    • Stealth Master: Assassin Ninja v1.12.15 +4++ Cheats [ Damage & Defence ]
      Modded/Hacked App: Stealth Master: Assassin Ninja By SayGames LTD
      Bundle ID: io.highcore.stealthmaster
      iTunes Store Link: https://apps.apple.com/us/app/stealth-master-assassin-ninja/id1518389230
       

      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Unlimited Currencies -> Restart the app for it to take effect.
      - All Characters Unlocked


      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/
      • 25 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