Jump to content

Errors compiling Tweak.xm


Go to solution Solved by Todeskuss,

37 posts in this topic

Recommended Posts

Posted (edited)

Making all for tweak testtweak...

Preprocessing Tweak.xm...

Compiling Tweak.xm...

Tweak.xm:4:3889: error: expected parameter declarator

Tweak.xm:4:3889: error: expected ')'

Tweak.xm:4:3869: note: to match this '('

Tweak.xm:4:4004: error: expected parameter declarator

Tweak.xm:4:4004: error: expected ')'

Tweak.xm:4:3984: note: to match this '('

Tweak.xm:4:4126: error: expected parameter declarator

Tweak.xm:4:4126: error: expected ')'

Tweak.xm:4:4103: note: to match this '('

Tweak.xm:4:4247: error: expected parameter declarator

Tweak.xm:4:4247: error: expected ')'

Tweak.xm:4:4224: note: to match this '('

Tweak.xm:4:4363: error: expected parameter declarator

Tweak.xm:4:4363: error: expected ')'

Tweak.xm:4:4343: note: to match this '('

Tweak.xm:4:4478: error: expected parameter declarator

Tweak.xm:4:4478: error: expected ')'

Tweak.xm:4:4458: note: to match this '('

Tweak.xm:4:4608: error: expected parameter declarator

Tweak.xm:4:4608: error: expected ')'

Tweak.xm:4:4589: note: to match this '('

Tweak.xm:4:4741: error: expected parameter declarator

Tweak.xm:4:4741: error: expected ')'

Tweak.xm:4:4722: note: to match this '('

Tweak.xm:4:4863: error: expected parameter declarator

Tweak.xm:4:4863: error: expected ')'

Tweak.xm:4:4842: note: to match this '('

Tweak.xm:4:4980: error: expected parameter declarator

fatal error: too many errors emitted, stopping now [-ferror-limit=]

20 errors generated.

 

 

Tweak.xm:

 

removed

 

 

Updated by Fumetsu
Posted

@@fumetsu

 

The errors are because of these (?) methods. Are they supposed to be like that?


And you need to remove these "pass-through"

Posted

@@fumetsu

 

The errors are because of these (?) methods. Are they supposed to be like that?

And you need to remove these "pass-through"

ja i think? dat ist how it appears in Flex2.. what do I do about dass?

Posted

ja i think? dat ist how it appears in Flex2.. what do I do about dass?

Remove it?

Posted (edited)

Remove it?

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

 

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

{

 

 

and Tweak.xm:

 

 

removed

 

 

Updated by Fumetsu
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 

Go to line 114, you've done something wrong.

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