Its just showing a 0 where the image should be. If someone could tell me how to use setimg, or something else in this to show it up please. It's not regular chat, we're using bubbles and chat, so its all getting redrawn. help
PHP Code:
temp.filters = {
{ {":)", ":-)", "=)", "=-)"}, newsmilie_noob.gif},
};
temp.chat = player.chat.tokenize();
for (temp.i: temp.chat){
for (temp.f: temp.filters){
for (temp.g: temp.f[0]){
if (temp.g == temp.i.lower()){
temp.faceImage = temp.f[1];
temp.chat.replace(temp.c, temp.faceImage);
}
}
}
temp.c++;
}
for (temp.c: temp.chat){
temp.newChat @= temp.c @ " ";
}
player.chat = temp.newChat;