Jump to content

18 posts in this topic

Recommended Posts

Posted (edited)

Getting errors when making my tweak.

zy6O27Y.png

Tweak.xm

#import <substrate.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg2, 5);
}
%end

%hook AppDelegate

- (void)applicationDidBecomeActive:(id)application {
    NSUserDefaults *validate = [NSUserDefaults standardUserDefaults];
    NSString *alreadyRun = @"already_run";
    if ([validate boolForKey:alreadyRun])  
    return;
    [validate setBool:YES forKey:alreadyRun];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“READ Important
    message:@"Before using this make sure you stick to 1 active promotion per google account at one time for it not to get blocked. Views amount = Cost amount e.g 600 coins for 100 views = 600 views. Watch 1 video to get your 600 views, if it gets block after a day do 100 views instead (normal max). Enjoy your free unlimited Views and Likes!” delegate:nil cancelButtonTitle:@"Thanks AUSSIE G4M3R"
    otherButtonTitles:nil];
    [alert show];
    [alert release];
}
%end

Also if you can help with what I need to add for the #import, i'm not sure which ones I need and don't need so that would be nice.

Updated by TheArmPrincess
Posted (edited)

just substrate.h import is fine

and uikit

problem is with this line : 

 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“READ Important”
    message : blahblahblah

what template are you following

Updated by TheArmQueen
Posted (edited)
10 minutes ago, TheArmQueen said:

just substrate.h import is fine

and uikit

problem is with this line : 


 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“READ Important”
    message : blahblahblah

what template are you following

@Diversityy rewrote that bit of me, IDK.

Updated by TheArmPrincess
Posted
1 minute ago, TheArmPrincess said:

Someone else like Zarhi or something rewrote that bit of me, IDK.

ZahirSher ?

Is it ok if you dont have a popup in your tweak /

?

Posted
Just now, TheArmQueen said:

dinner now , will look at example templates and see :) 

Okay well i'm gonna go very soon.

Posted
17 minutes ago, TheArmPrincess said:

Okay well i'm gonna go very soon.

#import <substrate.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg2, 5);
}
%end
  
%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.
UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"READ Important" 
                                                  message:@"Before using this make sure you stick to 1 active promotion per google account at one time for it not to get blocked. Views amount = Cost amount e.g 600 coins for 100 views = 600 views. Watch 1 video to get your 600 views, if it gets block after a day do 100 views instead (normal max). Enjoy your free unlimited Views and Likes!”
                                                 delegate:self 
										cancelButtonTitle:@"Thanks" 
										otherButtonTitles:@"Visit Us", nil]; 
[igcredits show];
[igcredits 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://iosgods.com/"]];                                                                                
	}
}
%end

Copy paste exact same code  into tweak.xm ( i have added your function name , message and title  and stuff in it as well ) 

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