Jump to content

How to add (void) with a double with(argument)


Go to solution Solved by Patricktph,

4 posts in this topic

Recommended Posts

Posted

I got this errors when I tried to compire my tweak

Tweak.xm:2:103: error: expected class member or base

class name

...self, SEL _cmd):(double) {

^

Tweak.xm:2:103: error: expected '{' or ','

Tweak.xm:2:102: error: only constructors take base

initializers

...self, SEL _cmd):(double) {

^

Tweak.xm:3:1: error: use of undeclared identifier

'argument'

argument = 0;

^

Tweak.xm:5:106: error: expected class member or base

class name

...self, SEL _cmd):(double) {

^

Tweak.xm:5:106: error: expected '{' or ','

Tweak.xm:5:105: error: only constructors take base

initializers

...self, SEL _cmd):(double) {

^

Tweak.xm:6:1: error: use of undeclared identifier

'argument'

argument = 0;

^

Tweak.xm:8:106: error: expected class member or base

class name

...self, SEL _cmd):(double) {

^

Tweak.xm:8:106: error: expected '{' or ','

Tweak.xm:8:105: error: only constructors take base

initializers

...self, SEL _cmd):(double) {

^

Tweak.xm:9:1: error: use of undeclared identifier

'argument'

argument = 0;

^

Tweak.xm:11:104: error: expected class member or base

class name

...self, SEL _cmd):(double) {

^

Tweak.xm:11:104: error: expected '{' or ','

Tweak.xm:11:103: error: only constructors take base

initializers

...self, SEL _cmd):(double) {

^

Tweak.xm:12:1: error: use of undeclared identifier

'argument'

argument = 0;

^

This is my tweak.xm

 

%hook MNBballScene

-(void) _readyBallAtPossition:(double) {

argument = 0;

}

-(void) setRimXVelocityMagnitude:(double) {

argument = 0;

}

-(void) setRimXYelocityMagnitude:(double) {

argument = 0;

}

-(void) flingBallWithXVelocity:(double) {

argument = 0;

}

-(double) ballX {

return 0;

}

-(double) rimXVelocity {

return 0;

}

-(double) rimYVelocity {

return 0;

}

%end

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