Skip to content
Guest Big Announcement

can we make a tweak with thesame Class & Same Methods?

Featured Replies

Hey,

 

Didn't know how I had to call the title, lol..

 

what I want is this:

%hook Car

-(int) equip {
if(getPrefBool(@"key1")) {
return 40;
}
return %orig
}

-(int) equip {
if(getPrefBool(@"key2")) {
return 18;
}
return %orig
}

is this possible?

 

Solved by Guest

Totally. don't forget %end at the end :)

Shit wait I misread that xD What would you want that?

  • Solution

Do it like this:

Hmm, but then I compile it gives me errors. even with the %end

Refresh the page look at my first post i misread it

Do it like this:

 

%hook Car

- (int)equip {
if(GetPrefBool(@"key1")){
return 40;
}
else if(GetPrefBool(@"key2")){
return 18;
}
else{
return %orig;
}
}
%end

Updated by Guest

  • Author

Do it like this:

Refresh the page look at my first post i misread it

Do it like this:

 

%hook Car

- (int)equip {
if(GetPrefBool(@"key1")){
return 40;
}
else if(GetPrefBool(@"key2")){
return 18;
}
else{
return %orig;
}
}
%end

I think you mena "Why would you want that"?

 

Well then it will mix it together bcs those numbers '40 & 18' are the products what I want to mix together

I think you mena "Why would you want that"?

 

Well then it will mix it together bcs those numbers '40 & 18' are the products what I want to mix together

yeah thats what I meant

 

And it won't mix. Once an evaluation in that if else ladder is true, it will return, only then

  • Author

yeah thats what I meant

 

And it won't mix. Once an evaluation in that if else ladder is true, it will return, only then

oh well, is that 100% sure? bcs I got errors again but if it sure not gonna waste my time more lol

oh well, is that 100% sure? bcs I got errors again but if it sure not gonna waste my time more lol

screenshot?

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.