SkatCh Posted January 21, 2015 Posted January 21, 2015 Does any one know how to start double sided transaction ? Failure is simply an opportunity to begin again more intelligently - Henry Ford
Castillo Posted January 21, 2015 Posted January 21, 2015 Create a function which when you execute it, it replaces the original createObject with a custom one, which creates the object and sets it double sided, then create another which restores the original function, to end the transaction. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
SkatCh Posted January 21, 2015 Author Posted January 21, 2015 Yes bro i know how to do this but it always appear attempt to call global doubleSideTransaction (a nil value) Failure is simply an opportunity to begin again more intelligently - Henry Ford
Castillo Posted January 21, 2015 Posted January 21, 2015 Post your code. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
SkatCh Posted January 21, 2015 Author Posted January 21, 2015 (edited) thx fixed Edited January 21, 2015 by Guest Failure is simply an opportunity to begin again more intelligently - Henry Ford
Castillo Posted January 21, 2015 Posted January 21, 2015 You are unpacking "arg" which is not defined anywhere @ createObjectDoubleSided. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
SkatCh Posted January 21, 2015 Author Posted January 21, 2015 sorry bro did work again function createObjectDoubleSided( ... ) local args = {...} local temp = _createObject( unpack(args) ) setElementDoubleSided(temp, true) return temp end Failure is simply an opportunity to begin again more intelligently - Henry Ford
SkatCh Posted January 21, 2015 Author Posted January 21, 2015 any help Failure is simply an opportunity to begin again more intelligently - Henry Ford
TAPL Posted January 21, 2015 Posted January 21, 2015 I guess you want something like this: _createObject = createObject function createObject( ... ) local args = {...} local temp = _createObject( unpack(args) ) setElementDoubleSided(temp, true) return temp end
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now