Skip to content
Guest Big Announcement

Error: %orig does not make sense outside a block

Featured Replies

https://ghostbin.com/paste/pdmb9 --> that funcs i added recently to my hack

%hook BMEnergyCounter
-(float)energyCount {
if(GetPrefBool(@"kswag6"))
{
return 999999999;
}
return %orig;
}

-(void)setEnergyCount:(float)fp8 {
if(GetPrefBool(@"kswag6)) {
fp8=999999999;
}
return %orig;
}
%end

But i got this
dMW4v5R.jpg
So any mistakes in the funcs ?

Updated by DiDA

Solved by Rook

  • Solution

You forgot a quotation at 

 

 

-(void)setEnergyCount:(float)fp8 {
if(GetPrefBool(@"kswag6")) {

%hook BMEnergyCounter
-(float)energyCount {
if(GetPrefBool(@"kswag6"))
{
return 999999999;
}
return %orig;
}

-(void)setEnergyCount:(float)fp8 {
if(GetPrefBool(@"kswag6")) {
fp8=999999999;
}
return %orig;
}
%end

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.