Skip to content
Guest Big Announcement

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

Featured Replies

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

Solved by Patricktph

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.