Jump to content

Help with BOOL.


Go to solution Solved by niro,

17 posts in this topic

Recommended Posts

Posted

hey, so im trying to make a bool return as true only if the string equals XXX

so i have

 

- (BOOL)isVerified
{
  if ([argument isEqualToString:@"[email protected]"]) return YES;

 %orig;
}

 

 

now i know thats wrong. BUT it helps explain what im striving for, So like i said, i only want it to return true if its equal to that string or my username. what else is there that i could use besides

"isEqualToString"

 

sorry I am terrible at explaining.

Posted

hey, so im trying to make a bool return as true only if the string equals XXX

so i have

 

- (BOOL)isVerified

{

  if ([argument isEqualToString:@"[email protected]"]) return YES;

 %orig;

}

 

 

now i know thats wrong. BUT it helps explain what im striving for, So like i said, i only want it to return true if its equal to that string or my username. what else is there that i could use besides

"isEqualToString"

 

sorry I am terrible at explaining.

 

"argument" isn't defined, function isn't in brackets, you wouldn't need an %orig, but a return %orig; instead

Posted (edited)

The function is in brackets....

 

Nope,  the method is in brackets. method != function.  By function, I was referring to everything to be ran after the 'if' statement.  Learn your stuff m8.

 

- (BOOL)isVerified

{

  if ([argument isEqualToString:@"[email protected]"]) return YES;

 %orig;

}

 

As you can see, the "return YES;" isn't in brackets { }.  Also, it would be TRUE, not YES.

Updated by Todeskuss
Posted (edited)

Nope,  the method is in brackets. method != function.  By function, I was referring to everything to be ran after the 'if' statement.  Learn your stuff m8.

 

 

As you can see, the "return YES;" isn't in brackets { }.  Also, it would be TRUE, not YES.

1. a function != if statement

2. an If Statement does not have to have brackets as long its only one line in the if statement

3. Its YES not TRUE, because TRUE isn't defined like YES is

 

learn ur stuff m8

Updated by SexyDiDA
Posted

1. a function != if statement

2. an If Statement does not have to have brackets as long its only one line in the if statement

3. Its YES not TRUE, because TRUE isn't defined like YES is

 

learn ur stuff m8

 

if statement : the conditionals in the parenthesis

function : what is to be run if the conditions are met

 

a boolean is true or false, not yes or no.  Therefore a bool cannot be returned as a YES, but a TRUE. 

learn ur stuff m8

Posted

if statement : the conditionals in the parenthesis

function : what is to be run if the conditions are met

 

a boolean is true or false, not yes or no.  Therefore a bool cannot be returned as a YES, but a TRUE. 

 

learn ur stuff m8

if statement : the conditionals in the parenthesis

function : what is to be run if the conditions are met

 

a boolean is true or false, not yes or no.  Therefore a bool cannot be returned as a YES, but a TRUE. 

 

learn ur stuff m8

:facepalm: this is a BOOL not a bool, gets ur facts right

a BOOL is a typedef of a signed char, u return YES

 

geezus, leave this issue to actual coders plz 

Posted

:facepalm: this is a BOOL not a bool, gets ur facts right

a BOOL is a typedef of a signed char, u return YES

 

geezus, leave this issue to actual coders plz 

 

[sarcasm] Okay sure buddy, because my patcher I made a few days ago has BOOLs returned as TRUE and they don't work [/sarcasm]

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

    • Vikings Revenge v1.0.8 [+5 Cheats]
      Modded/Hacked App: Vikings Revenge By Estoty LLC
      Bundle ID: com.vikings.game
      App Store Link: https://apps.apple.com/us/app/vikings-revenge/id6745582935?uo=4



      🤩 Hack Features

      - Add All Resources
      - Increase Tool Level
      - Never Die
      - Skip Current Quest (Use it when you needed)
      - Enable No Ads
      • 0 replies
    • Vikings Revenge v1.0.8 [+5 Cheats]
      Modded/Hacked App: Vikings Revenge By Estoty LLC
      Bundle ID: com.vikings.game
      App Store Link: https://apps.apple.com/us/app/vikings-revenge/id6745582935?uo=4

       

      🤩 Hack Features

      - Add All Resources
      - Increase Tool Level
      - Never Die
      - Skip Current Quest (Use it when you needed)
      - Enable No Ads
      • 1 reply
    • Undercity: Creature Survival v0.40 [+2 Jailed Cheats]
      Modded/Hacked App: Undercity: Creature Survival By 1N1
      Bundle ID: com.onenone.undercity
      App Store Link: https://apps.apple.com/us/app/undercity-creature-survival/id6744991966?uo=4


      🤩 Hack Features

      - Never Die
      - Add Currency
      • 4 replies
    • Undercity: Creature Survival v0.40 [+2 Cheats]
      Modded/Hacked App: Undercity: Creature Survival By 1N1
      Bundle ID: com.onenone.undercity
      App Store Link: https://apps.apple.com/us/app/undercity-creature-survival/id6744991966?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
      • 6 replies
    • Rise of Monsters v23 [+2 Jailed Cheats]
      Modded/Hacked App: Rise of Monsters By ONEMT PTE. LTD.
      Bundle ID: com.onemt.ios.rom
      App Store Link: https://apps.apple.com/us/app/rise-of-monsters/id6738032041?uo=4



      🤩 Hack Features

      - Never Die
      - No Skill CD
      • 13 replies
    • Rise of Monsters v23 [+2 Cheats]
      Modded/Hacked App: Rise of Monsters By ONEMT PTE. LTD.
      Bundle ID: com.onemt.ios.rom
      App Store Link: https://apps.apple.com/us/app/rise-of-monsters/id6738032041?uo=4



      🤩 Hack Features

      - Never Die
      - No Skill CD
       
      • 9 replies
    • Travel Merge Family v2.30 [ +1++ Jailed ] Currency Max
      Modded/Hacked App: Travel Merge Family By Arruga Corp.
      Bundle ID: com.ArrugaCorp.TravelMergeFamily
      App Store Link: https://apps.apple.com/us/app/travel-merge-family/id6553995556?uo=4


      🤩 Hack Features

      - Currency Max


      • 2 replies
    • Travel Merge Family v2.30 [ +1++ Cheats ] Currency Max
      Travel Merge Family


      Modded/Hacked App: Travel Merge Family By Arruga Corp.
      Bundle ID: com.ArrugaCorp.TravelMergeFamily
      App Store Link: https://apps.apple.com/us/app/travel-merge-family/id6553995556?uo=4


      🤩 Hack Features

      - Currency Max


      • 3 replies
    • Project Makeover v2.116.1 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Project Makeover By Magic Tavern, Inc.
      Bundle ID: com.bgg.jump
      App Store Link: https://apps.apple.com/us/app/project-makeover/id1483058899?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Lives

      This hack was made by @Cashlaz. Give him all your love & appreciation! ❤️
      • 5 replies
    • Heroes vs. Hordes: Survivor v5.0.2 [ +11 Cheats ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       
      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO

       
      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/
      • 67 replies
    • Heroes vs. Hordes: Survivor v5.0.2 [ +11 Jailed ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       

       

      Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 83 replies
    • Virtual Villagers 6 v1.8.6 +100 Jailed Cheats [ Cheats Menu ]
      Modded/Hacked App: Virtual Villagers 6 By LDW Software, LLC
      Bundle ID: com.ldw.vv6
      iTunes Store Link: https://apps.apple.com/us/app/virtual-villagers-6/id6566193928?uo=4

       
       

      Hack Features

      - Cheats Menu -> Head into Settings, toggle the Help button, close settings then re-open to show a Cheats button.*
      - Unlimited Food*
      - Unlimited Wood*
      - Unlimited Stone*
      - Unlimited Tech Points*
      - Unlimited Lavastone*

      * - Head into Settings and toggle the Help button. Only enable 1 feature at a time.


      Jailbreak required iOS hacks: [Mod Menu Hack] Virtual Villagers 6 v1.3.23 +100 Cheats [ Cheats Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • 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