Hmmm...
I'm very basic at the moment. I only really just started scripting so I'm not great. It works though
So I'm not too bothered as long as the code works and it's not too slow.
The reason for the makestring(referer) is that when you destroy a window, the count is wrong and is actually one higher than it should be... So if a window gets destroyed, the referer is "D" and an extra 1 is taken off the count.
As for the problem with putting %chat in the middle of a string... This could be caused by a trailing space after the previous word... I may just use the string.replace function rather than an array
Let's see how long this take me to get to work
EDIT: %Chat now works in the middle of the string... Don't ask me why
If you were to look at the code, it'd probably confuse you too...
As for the string.replace code you gave me... it just replaces it with a " ". I think I'll stick with my useless code, but thanks anyway