Jump to content

Error: %orig does not make sense outside a block


Go to solution Solved by Rook,

4 posts in this topic

Recommended Posts

Posted (edited)

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
  • Solution
Posted

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
Posted (edited)

[success]Problem solved. Topic locked.

 

If you have any more questions... you know what to do :p (create a new support topic)[/success]

Updated by ZahirSher

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines