Jump to content

how do i add this to my patcher


Go to solution Solved by Pro,

5 posts in this topic

Recommended Posts

  • Solution
Posted (edited)

-(int)costForElevator:(int)args1 {

if(GetPrefBool(@"key1")) {

return 0;

args1 = 0;

}

return %orig;

}

 

Try that :) Don't forget to change the key to whatever yours is :p

Updated by Pro
Posted

Wrong because you first need to give the value to the argument. Nothing gets executed after the renters statement so if you equal the argument 0, you first got to do that

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