Jump to content

i need help


Go to solution Solved by Archangel04,

6 posts in this topic

Recommended Posts

Posted

any one help me please :/

tweak.xm

%hook Gold
-(unsigned long long) gold {
NSDictionary *ios = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/com.pro.pros.plist"]];
int k = [[ios objectForKey:@"k4"] intValue];
int r = %orig();
int p = r * k;
return (p)?
p: r;
}
%end
%hook Gold
-(unsigned long long) gold {
NSDictionary *ios = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/com.pro.pros.plist"]];
return [[ios objectForKey:@"k1"] intValue];
}
%end

 

// error

Tweak.xm:27:292: error: redefinition of
      '_logos_orig$_ungrouped$Story$gold'
  ...SEL); static unsigned long long (*_logos_orig$_ungroup...
                                       ^
Tweak.xm:27:29: note: previous definition is here
static unsigned long long (*_logos_orig$_ungrouped$Sto...
                            ^
Tweak.xm:16:27: error: redefinition of
      '_logos_method$_ungrouped$Story$gold'
static unsigned long long _logos_method$_ungrouped$Sto...
                          ^
Tweak.xm:6:27: note: previous definition is here
static unsigned long long _logos_method$_ungrouped$Sto...
                          ^
2 errors generated.
make[3]: *** [/var/mobile/gold/.theos/obj/debug/armv7/Tweak.xm.48fb334b.o] Error 1
make[2]: *** [/var/mobile/gold/.theos/obj/debug/armv7/gold.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [gold.all.tweak.variables] Error 2

  • Solution
Posted

you defined the same thing twice. Read the error. Your line 6 and 16 are same. 

also, this isnt your full tweak.xm. I suggest you use armconverter.com. If you did, then reload because pressing generate twice adds it twice

 

Posted
On ٢٠‏/٤‏/٢٠١٧ at 9:15 PM, Archangel04 said:

you defined the same thing twice. Read the error. Your line 6 and 16 are same. 

also, this isnt your full tweak.xm. I suggest you use armconverter.com. If you did, then reload because pressing generate twice adds it twice

 

thanks :clap:

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