PDA

View Full Version : Stopping a particular native from being called in a particular forward


ddhoward
10-31-2014, 06:29
So let's say that I have someForward() that is called by mainPlugin.smx. mainPlugin.smx also provides someNative().

Is it possible to prevent someNative() from being called from someForward() in otherPlugin.smx?


//otherPlugin.smx
public someForward() {
someNative(); //i want this to throw an error when being compiled
}

asherkin
10-31-2014, 09:38
Best you can do is a runtime error, have a global bool, set it in before you trigger the forward, unset it after, and check it in the native callback.