What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Help in C. how to...

Help in C. how to...
Author: Message:
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Help in C. how to...
sName, sValue...etc are arrays, you should increase the array index when assigning different values to different array elements :)

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)");
   
    strcpy(aTags->sName[1], "example1");
    strcpy(aTags->sValue[1], "(!xexample1)");

    return TRUE;
}

05-30-2004 09:18 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help in C. how to... - by crank on 05-30-2004 at 09:15 AM
RE: Help in C. how to... - by Mnjul on 05-30-2004 at 09:18 AM
RE: Help in C. how to... - by crank on 05-30-2004 at 09:23 AM
RE: Help in C. how to... - by Mnjul on 05-30-2004 at 09:38 AM
RE: Help in C. how to... - by crank on 05-30-2004 at 02:56 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On