How do I add a new command to MQ?
Posted: Thu May 08, 2003 11:21 am
I want to add a new command. In TakeControlOfCommandList, I add
{"/mycmd", "myCmd"},
to the szNewCommands array.
I then define my function later down below:
VOID myCmd (PSPAWNINFO pChar, PCHAR szLine)
{
// do stuff
}
What else am I missing? Its doesn't recognize /mycmd when I try it in game. I tried following the example of /beep but there must be more to it.
thanks
{"/mycmd", "myCmd"},
to the szNewCommands array.
I then define my function later down below:
VOID myCmd (PSPAWNINFO pChar, PCHAR szLine)
{
// do stuff
}
What else am I missing? Its doesn't recognize /mycmd when I try it in game. I tried following the example of /beep but there must be more to it.
thanks