Skip to content
Guest Big Announcement

How to deal with multiple arguments

Featured Replies

Solved by AnotherLurker

I need to know how to deal with different and multiple arguments like these: http://imgur.com/e5G3pI4

Try this:
%hook SPDEarnCoinsViewController
- (void)showInviteFriendsAlertWithReward:(int)reward andDailyLimit:(int)limit {
    %orig(999999, 999999);
}
%end
You might also want to hack the Daily Limit amount. :p

Updated by Dwayne Johnson

  • Author

Try this:

 

%hook SPDEarnCoinsViewController
- (void)showInviteFriendsAlertWithReward:(int)reward andDailyLimit:(int)limit {
    %orig(999999, 999999);
}
%end
You might also want to hack the Daily Limit amount. :p
What about these kinda arguments: http://imgur.com/b7ngyxo
  • Author
%hook SPDCoinsManager
- (void)subtractCoins:(int)coins {
     %orig(0);
}
%end

Thanks so much man you should make a tut for beginners :D

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.