I'm making a plug-in for the moment but i've got a problem...
It must be simple but I can't find my mistake.
PLEASE HELP!
code:
MPPLUGIN_RETURN_BOOL PublishInfo(/*[out]*/ char *sPluginName,
/*[out]*/ PLUGIN_PUBLISH_LIST* aCommands,
/*[out]*/ PLUGIN_PUBLISH_LIST* aTags)
{
//Copy the name of the plugin
strcpy(sPluginName, "EXAMPLE");
//Set the commands help
aCommands->nCount = 1;
strcpy(aCommands->sName[0], "EXAMPLE");
strcpy(aCommands->sValue[0], "xEXAMPLE");
strcpy(aCommands->sHelp[0], "EXAMPLE.");
//Set the tags help
aTags->nCount = 2;
strcpy(aTags->sName[0], "example");
strcpy(aTags->sValue[0], "(!xexample)");
//Set the tags help
aTags->nCount = 2;
strcpy(aTags->sName[0], "example1");
strcpy(aTags->sValue[0], "(!xexample1)");
return TRUE;
}
That code should show a menu.
It does but it only shows:
code:
EXAMPLE
------------
example1
--> It doesn't show the 'example' Tag. I tried to change the nCount Value but it doesn't help. Can anyone help me with this???
Edit: I had an idea I'm trying it now, but if you have a solution please PM me.
I tried this:
code:
//Set the tags help
aTags->nCount = 2;
strcpy(aTags->sName[0], "QT hello");
strcpy(aTags->sValue[0], "(!XQThello)");
strcpy(aTags->sName[1], "QT insult");
strcpy(aTags->sValue[1], "(!XQTinsult)");
Still doesn't work!