Jump to content

19 posts in this topic

Recommended Posts

Posted

 

Making all for tweak testtweak...

Preprocessing Tweak.xm...

Compiling Tweak.xm...

Tweak.xm:51:1: error: missing context for method declaration

- (unsigned int)getNumBallsOnTable; {

^

Tweak.xm:57:1: error: missing context for method declaration

- (unsigned int)numBallsPocketed; {

^

Tweak.xm:63:1: error: missing context for method declaration

- (BOOL)isBallPocketed:(id)fp8; {

^

Tweak.xm:69:1: error: missing context for method declaration

- (int)foulReason; {

^

Tweak.xm:75:1: error: missing context for method declaration

- (int)foulReason; {

^

Tweak.xm:81:1: error: missing context for method declaration

- (void)setFoulReason:(int)fp8 opponentName:(id)fp12; {

^

Tweak.xm:88:1: error: missing context for method declaration

- (BOOL)foulShot; {

^

Tweak.xm:95:1: error: missing context for method declaration

- (id)getFoulReasonText:(int)fp8; {

^

Tweak.xm:101:1: error: missing context for method declaration

- (void)setOpponentQuit:(BOOL)fp8; {

^

Tweak.xm:107:1: error: missing context for method declaration

- (BOOL)opponentQuit; {

^

Tweak.xm:113:1: error: missing context for method declaration

- (BOOL)isOnStateOpponentTurn; {

^

Tweak.xm:120:1: error: missing context for method declaration

- (BOOL)isOnStateOpponentTurn; {

^

Tweak.xm:127:1: error: missing context for method declaration

- (BOOL)isOnStateOpponentTurnOrJustLeftIt; {

^

13 errors generated.

 

 

http://imgur.com/CRqSGMw

Posted (edited)

Either

-(void) functionCall
Or

 

- (void)functionCall
Set the correct spaces Updated by z0ne
Posted

What's with the ';'?

 

Show us your Tweak.xm.

Posted

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.yourcompany.8ballpoolhack.plist"

 

inline bool GetPrefBool(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

%hook something

 

-(int)method {

if(GetPrefBool(@"kKey")) {

return 9999999;

}

return %orig;

}

 

-(int)gems {

if(GetPrefBool(@"kGems")) {

return 9999999;

}

return %orig;

}

 

-(unsigned int)lives {

if(GetPrefBool(@"kLives")) {

return 9999999;

}

return %orig;

}

 

%end

 

%hook SomethingElse

 

-(BOOL)Autowin {

if(GetPrefBool(@"kKEY5")) {

return TRUE;

}

return %orig;

}

 

-(BOOL)Autowin2 {

if(GetPrefBool(@"kKEY6")) {

return FALSE;

}

return %orig;

}

 

%end

 

- (unsigned int)getNumBallsOnTable; {

 

return 1;

 

}

 

- (unsigned int)numBallsPocketed; {

 

return 8;

 

}

 

- (BOOL)isBallPocketed:(id)fp8; {

 

return True;

 

}

 

- (int)foulReason; {

 

return 13;

 

}

 

- (int)foulReason; {

 

return 13;

 

}

 

- (void)setFoulReason:(int)fp8 opponentName:(id)fp12; {

 

return 13;

 

}

 

 

- (BOOL)foulShot; {

 

return 13;

 

}

 

 

- (id)getFoulReasonText:(int)fp8; {

 

return 13;

 

}

 

- (void)setOpponentQuit:(BOOL)fp8; {

 

return True;

 

}

 

- (BOOL)opponentQuit; {

 

return True;

 

}

 

- (BOOL)isOnStateOpponentTurn; {

 

return False;

 

}

 

 

- (BOOL)isOnStateOpponentTurn; {

 

return false;

 

}

 

 

- (BOOL)isOnStateOpponentTurnOrJustLeftIt; {

 

return false;

 

}

 

 

 

 

%hook AppDelegate

 

-(void)applicationDidBecomeActive:(id)arg {

 

UIAlertView *credits = [[uIAlertView alloc] initWithTitle:@"@@8Ball PoolHack@@ Cheats"

message:@"Hacked by @@@Salman1700@@ for iOSGods.com!"

delegate:self

cancelButtonTitle:@"Thanks"

otherButtonTitles:@"Visit Us", nil];

[credits show];

[credits release];

%orig();

}

 

%new

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

 

NSString *button = [alertView buttonTitleAtIndex:buttonIndex];

 

if([button isEqualToString:@"Visit Us"])

{

[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.iOSGods.com/]];

}

}

%end

Posted

Why do you have ';' after your method?

Posted

No help :(

Just remove the ; from the method

- (unsigned int)numBallsPocketed {

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