Skip to content
Guest Big Announcement

Returning Multiple Methods - unsigned int & int

Featured Replies

how would i wright this out in MS ?

 

Target Class
FABPremiumProduct

 

Target Method

-(void) updateGoldValue:(unsigned int)cashValue:(unsigned int)sortindex:(int)

 

Return Value (void)

pass-through

 

Argument #1(unsigned int)

9999999

 

Argument #2(unsigned int)

9999999

 

Argument #3(int)

9999999

Updated by L33TPr0xY

Solved by Rook

  • Author

 

 

so i would have to wright it like this

 

%hook FABPremiumProduct
 
-(void) updateGoldValue:(unsigned int) {
return 9999999;
}
-(void) cashValue:(unsigned int) {
return 9999999;
}
-(void) sortindex:(int){
return 9999999;
}
%end

 

so i would have to wright it like this

 

%hook FABPremiumProduct
 
-(void) updateGoldValue:(unsigned int) {
return 9999999;
}
-(void) cashValue:(unsigned int) {
return 9999999;
}
-(void) sortindex:(int){
return 9999999;
}
%end

 

 

No, read it properly:

void with argument
-(void)setCoins:(int)argument {
argument = 999999;
}
-(void)setHasCoins:(bool)argument {
argument = TRUE;
}
-(void)setCoins:(id)argument {
argument = [NSNumber numberWithInteger:999999];
}
/* “argument” can be named anything. This is similar to returning non-void counterparts,
except you name the argument and remove “return” */

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.