Jump to content

Get all server cmds.


Feche1320

Recommended Posts

Posted

Is there any way to get all server commands?

I tried this

_addCommandHandler = addCommandHandler 
function addCommandHandler(cmd, ...) 
    addCommandHandler(cmd, ...) 
    table.insert(sCmds, cmd) 
end 
  

But I get stack overflows..

Posted
_addCommandHandler = addCommandHandler 
  
function addCommandHandler( cmd, ... ) 
    _addCommandHandler(cmd, ...) -- You have to call the function saved on the variable, else it'll make a stack overflow. 
    table.insert(sCmds, cmd) 
end 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...