Skip to content
Guest Big Announcement

%end does not make sense inside block

Featured Replies

Solved by Ted2

Just now, Fadexz said:

I thought you knew everything gosh.

Nobody but me seems to use the code functionality..

You need to declare the original function name, with arguments you don't have to, you can use fp8 etc etc.

The unsigned int is the main function name, now in your code it doesn't have a function name & obviously it will generate errors.

  • Replies 24
  • Views 3.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
6 minutes ago, Ted2 said:

%hook UserInfo
-(unsigned int) "What is function name" fp8 getConsumableAmountOfType:(int)fp12 { //Tell functionname
fp8 = 1;
fp12 = 1;
return %orig; //if you don't wanna return it anything, I think you need to do: return; or return %orig; (not just %orig, not sure tho)
}
%end

6XSf2pQ.png

This's the unit from flex

Updated by Demi-God

  • Author
4 minutes ago, Ted2 said:

-(unsigned int) getConsumableAmountOfType:(int)fp12 {

 

Use this on the line

But what about the two returned value? fp8 = 1

fp12 = 1

1 minute ago, Demi-God said:

But what about the two returned value? fp8 = 1

fp12 = 1

There is only one argument in your screenshot

%hook UserInfo
-(unsigned int) getConsumableAmountOfType:(int)fp12 {
return 1; //returns the unsigned int
fp12 = 1; //returns the argument
}
%end

1 minute ago, Fadexz said:

@Ted2 Just out of interest.. what's the difference between using e.g "arg1" and "fp8" or "fp12"?

Nothing, you can use whatever you want. (gay, ass, lesbian etc etc). Alsong as you return them

Updated by Ted2

  • Author
15 minutes ago, Fadexz said:

I was trying to find a rounded bracket but I didn't look hard enough because I thought that was the problem.  :D

Here's the complete code without you're spelling mistakes, etc. in the message.

https://ghostbin.com/paste/ozs73

Thanks i had a lot of mistakes xD

 

10 minutes ago, Ted2 said:

There is only one argument in your screenshot

%hook UserInfo
-(unsigned int) getConsumableAmountOfType:(int)fp12 {
return 1; //returns the unsigned int
fp12 = 1; //returns the argument
}
%end

Finally its done X'D thanks ?❤️

5 minutes ago, Ted2 said:

Nothing, you can use whatever you want. (gay, ass, lesbian etc etc). Alsong as you return them

When you use the Ass return it ! xD now that's funny 

  • Author

Ok how to put this one 

 

-(int) getAimForCue:(int)

return value = 18

argument #1 = 18

i tried two method and turned out wrong 

 

(i fixed  it ?)

Updated by Demi-God

3 hours ago, Ted2 said:

There is only one argument in your screenshot

%hook UserInfo
-(unsigned int) getConsumableAmountOfType:(int)fp12 {
return 1; //returns the unsigned int
fp12 = 1; //returns the argument
}
%end

This is wrong. You should do fp12=1 before you 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.