Draycos Goldaryn
Member
Ok, I'm using unless Object.const_defined?SDK)[/FONT] to detect the sdk. if the sdk has not been defined, my script will then emulate SDK.enabled?(script)[/FONT] in order to enable the script. the problem is that when multiple scripts run this, each script after the first will always return true then run an error when they try to log the script. I tried to add SDK.method_defined?log)[/FONT] but that returns false even if the SDK is installed, I tried SDK.method_defined?SDK.log)[/FONT] but that encounters an error. SDK.method_defined?self.log)[/FONT] also does not work.
I've found a workaround by using SDK.const_defined?PARTS)[/FONT] but was wondering, am I doing something wrong with the aforementioned commands?
I've found a workaround by using SDK.const_defined?PARTS)[/FONT] but was wondering, am I doing something wrong with the aforementioned commands?