Author Topic: I'm not seeing an error anywhere, but there must be one. [Fixed]  (Read 444 times)

Code: [Select]
package ForumEmotes
{
function servercmdMessageSent(%client, %text)
{
%text = strReplace(%text,":cookiemonster:","<bitmap:add-ons/script_forumemotes/cookiemonster.png>");
%text = strReplace(%text,":cookie:","<bitmap:add-ons/script_forumemotes/cookie.png>");
%text = strReplace(%text,":panda:","<bitmap:add-ons/script_forumemotes/sadpanda.png>");
%text = strReplace(%text,":icecream:","<bitmap:add-ons/script_forumemotes/icecream.png>");
%text = strReplace(%text,":nes:","<bitmap:add-ons/script_forumemotes/nes.png>");
%text = strReplace(%text,":D","<bitmap:add-ons/script_forumemotes/biggrin.png>");
%text = strReplace(%text,":\","<bitmap:add-ons/script_forumemotes/confused.png>"); <----- Took out this line and it worked fine.
%text = strReplace(%text,":/","<bitmap:add-ons/script_forumemotes/confused.png>");
%text = strReplace(%text,"B)","<bitmap:add-ons/script_forumemotes/cool.png>");
messageall("","\c7" @ %client.clanPrefix @ "\c2" @ %client.name @ "\c7" @ %client.clanSuffix @ "\c6: " @ %text);
}
};
activatepackage(ForumEmotes);

It wouldn't happen to be the "B)", would it?
Also, I DO NOT want this parented, so don't comment on that.
« Last Edit: July 27, 2010, 10:53:10 AM by TheBlackParrot »



You won't even tell us the god damn problem.

Hey lookie, he forgot to parent it.
   messageall("","\c7" @ %client.clanPrefix @ "\c2" @ %client.name @ "\c7" @ %client.clanSuffix @ "\c6: " @ %text);
Cant he replace that with the parent?

%text = strReplace(%text,":\\","<bitmap:add-ons/script_forumemotes/confused.png>");