Feche1320 Posted March 17, 2012 Share Posted March 17, 2012 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.. Link to comment
Castillo Posted March 17, 2012 Share Posted March 17, 2012 _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 Link to comment
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