Skip to content
Guest Big Announcement

problems with dylib files

Featured Replies

  • Author

Paste the code here please.

cant :/

This is the code

 

%hook LevelLayer

-(int)grenades {

return 9999999;

}

-(void) setGrenades:(int)fp8 {

fp8 = 9999999;

%orig(fp8);

)

%end

  • Replies 38
  • Views 5.1k
  • Created
  • Last Reply

Top Posters In This Topic

I think the problem is that your numbers are too big.  You have them as like 9999999 when they can't be over 99999 I think

 

Also remove the space in front of the -(void)

Updated by Todeskuss

  • Author

Uhm there isn't even 21 lines of code... what??

yeah because i guess i dont need it the hack works

I think the problem is that your numbers are too big.  You have them as like 9999999 when they can't be over 99999 I think

 

Also remove the space in front of the -(void)

i will try

yeah because i guess i dont need it the hack works

i will try

No what I was saying is that the error in Terminal says it's at line 21 (Tweak.xm:21) when there isn't even 21 lines of code...

  • Author

I think the problem is that your numbers are too big.  You have them as like 9999999 when they can't be over 99999 I think

 

Also remove the space in front of the -(void)

this wont work :/

No what I was saying is that the error in Terminal says it's at line 21 (Tweak.xm:21) when there isn't even 21 lines of code...

then whathehell is it lol

  • Author

did you remove the space AFTER the -(void) ?

yes i did

did you remove the space AFTER the -(void) ?

and the return 99999 do i need to delete the space too?

 

%hook LevelLayer
-(int)grenades {
return 999999; 
}
 
-(void)setGrenades:(int)grenades {
fp8 = 999999;
%orig(fp8);
}
%end

 

%hook LevelLayer

-(int)grenades {

return 999999;

}

 

-(void)setGrenades:(int)grenades {

fp8 = 999999;

%orig(fp8);

}

%end

 

 

 

Copy and paste this exactly, and tell me what errors you get when compiling

Updated by Todeskuss

Try

%hook LevelLayer
-(int)grenades {
return 99999;
}
-(void)setGrenades:(int)fp8 {
fp8=99999;
%orig(fp8);
}
%end

and

 

 

%hook LevelLayer
-(int)grenades {
return 999999; 
}
 
-(void)setGrenades:(int)grenades {
fp8=999999;
%orig(fp8);
}
%end

Updated by SexyCurry

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.