Jump to content

Errors compiling Tweak.xm


Go to solution Solved by Todeskuss,

37 posts in this topic

Recommended Posts

Posted

Okay so now I'm ending up with another error:

 

Tweak.xm:114:2: error: expected unqualified-id

{

 

 

and Tweak.xm:

 

 

%hook PlayerData-(void) setVetoVoteCast:(bool) veto {veto=true;%orig(veto);}-(bool) vetoVoteCast { return true;}%end%hook MultiplayerController-(void) setIsPregameVeto: (bool)veto {veto=false;%orig(veto);}-(bool) isHost { return true;}%end%hook Hat-(BOOL) unlocked { return TRUE;}-(void) setUnlocked: (BOOL)hat {hat=TRUE;%orig(hat);}%end%hook Color-(BOOL) unlocked { return TRUE;}-(void) setUnlocked: (BOOL)color {color=TRUE;%orig(color);}%end%hook Character-(BOOL) unlocked { return TRUE;}-(void) setUnlocked: (BOOL)character {character=TRUE;%orig(character);}%end%hook Trail-(BOOL) unlocked { return TRUE;}-(void) setUnlocked: (BOOL)trail {trail=TRUE;%orig(trail);}%end%hook UserDataManager-(BOOL) isPowerupUnlocked {return TRUE;}-(BOOL) isHatUnlocked {return TRUE;}-(BOOL) isCharacterUnlocked {return TRUE;}-(BOOL) isTrailUnlocked {return TRUE;}%end%hook LocalUserData-(BOOL) isPowerupUnlocked {return TRUE;}-(BOOL) isHatUnlocked {return TRUE;}-(BOOL) isCharacterUnlocked {return TRUE;}-(BOOL) isTrailUnlocked {return TRUE;}%end%hook Player-(bool) isOnGreen { return false;}-(bool) hasHitGreen { return false;}%end%hook PlayerUpdateData { return false;}%end%hook WaterSprite-(unsigned int) receiveContactEvent {return 0;}%end%hook SandTrapSprite-(unsigned int) receiveContactEvent {return 0;}%end%hook LaserSprite-(unsigned int) receiveContactEvent {return 0;}%end%hook  DynamicBox-(unsigned int) receiveContactEvent {return 0;}%end%hook BoundsSprite-(unsigned int) receiveContactEvent {return 0;}%end%hook TerrainObject-(unsigned int) receiveContactEvent {return 0;}%end%hook AppDelegate-(void)applicationDidBecomeActive:(id)arg { UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Flappy Golf Cheats"                                                   message:@"Hacked by Fumetsu for iOSGods.com!!"                                                  delegate:self                                         cancelButtonTitle:@"Thanks"                                         otherButtonTitles:@"Visit Us", nil]; [credits show];[credits release]; return %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 

 

some line spacing might help :3

Posted

well excuuuuse me, copy+paste doesn't include line-spacing apparently

It does, you probably just did it wrong? :/

Posted (edited)

Got Tweak.xm working, now I'm getting:

 

prefbundle.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found

#import <Preferences/Preferences.h>

Updated by Fumetsu
Posted

Issue resolved, thanks DiDA - close please

(y)

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