O.P. RE: [Request] C/C++ Keywords Script
Sorry for double post, but
That one you put there, doesn't work.
How do I use it?
just like:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
if (sMessage == "if")
sMessage.replace(/if/gi,"[c=2]if[/c]");
return sMessage;
}
or what?
I want it to change every "if" that is in the text, not just the first one. Even just
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
sMessage.replace(/if/gi,"[c=2]if[/c]");
return sMessage;
}
doesn't work.
Any ideas?
|