What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] C/C++ Keywords Script

[Request] C/C++ Keywords Script
Author: Message:
Paril
Junior Member
**

Avatar
Admin of Paril's Projects

Posts: 69
30 / Male / Flag
Joined: Jul 2006
O.P. RE: [Request] C/C++ Keywords Script
Could you post an example please? I am really no good at Jscript :(
[Sorry for Double Post]

Ok, I finished the part with the blue keywords

Problem is, if I do a text that has one of the keywords in it, it turns that blue, example:

[c=12]int[/c] ;

i =ran[c=12]do[/c]m(1-10); // not real..

[c=12]switch[/c](i)
{
          [c=12]case[/c] 1:
    pr[c=12]int[/c]f ("the number is 1");
          [c=12]break[/c];
          [c=12]case[/c] 2:
    printf ("dfh");
          [c=12]break[/c];
          [c=12]default[/c]:
    [c=12]printf[/c] ("it's not 1 or 2!");
          [c=12]break[/c];
}

Any way to stop it from doing like:

ran[c=12]do[/c]m?

Do I, like, change this

    sMessage = sMessage.replace(/do/gi,"[c=12]do[/c]");

to like

    sMessage = sMessage.replace(/do /gi,"[c=12]do[/c]");

and add a space after the first do, so it makes sure it's not part of current text?

-Paril
07-06-2006 01:59 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:17 AM
RE: [Request] C/C++ Keywords Script - by Silentdragon on 07-06-2006 at 01:26 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:29 AM
RE: [Request] C/C++ Keywords Script - by ShawnZ on 07-06-2006 at 01:29 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:31 AM
RE: [Request] C/C++ Keywords Script - by Silentdragon on 07-06-2006 at 01:42 AM
RE: [Request] C/C++ Keywords Script - by ShawnZ on 07-06-2006 at 01:45 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:48 AM
RE: [Request] C/C++ Keywords Script - by ShawnZ on 07-06-2006 at 01:53 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 01:59 AM
RE: [Request] C/C++ Keywords Script - by Silentdragon on 07-06-2006 at 02:26 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 02:35 AM
RE: [Request] C/C++ Keywords Script - by matty on 07-06-2006 at 04:57 AM
RE: [Request] C/C++ Keywords Script - by Paril on 07-06-2006 at 05:00 AM


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