ViRuZGamiing Posted June 23, 2014 Posted June 23, 2014 Hi, as the title says is, is this possible? function activateDebug3 () if ( isDebugViewActive() ) then -- debug true else -- debug false end addCommandHandler("db3", activateDebug3) I want to shorten the debugscipt 3 command. "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
ADCX Posted June 23, 2014 Posted June 23, 2014 function activateDebug3() if (isDebugViewActive()) then executeCommandHandler("debugscript","0") else executeCommandHandler("debugscript","3") end end addCommandHandler("db3",activateDebug3) My Skype: scriptmtasupport My Resources: http://www.scriptmta.co.nr - Cheap high-quality MTA resources by me and Kevin (ScriptMTA.co.nr)
ViRuZGamiing Posted June 23, 2014 Author Posted June 23, 2014 Didn't work neither Client or Server "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
ADCX Posted June 23, 2014 Posted June 23, 2014 Sorry, actually you can't do it. This function only executes command that is inside the lua file, not the hardcoded ones, so the only way you could make a shortcut for 'debugscript 3' is to bind it to a key in MTA console, if even that is possible. My Skype: scriptmtasupport My Resources: http://www.scriptmta.co.nr - Cheap high-quality MTA resources by me and Kevin (ScriptMTA.co.nr)
ViRuZGamiing Posted June 23, 2014 Author Posted June 23, 2014 Yes normally you can do this ingame /bind debugscript 3 anyway, thanks for trying "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
Et-win Posted June 23, 2014 Posted June 23, 2014 /bind <key> debugscript 3 You mean ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
ViRuZGamiing Posted June 23, 2014 Author Posted June 23, 2014 Yea sry /close "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
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