Well see here's the thing.

@Helghast: I made tmp_str3 specifically for these lines of code. The reason I made a new string is because I thought this might be it. Believe me, there is no way that the string is being rewritten before it shows on screen.

@jcl: I'm not so sure, the bug just randomly popped up one day. Then it went away for a few months, and now it's back...magically. See, not all my strings mess up, just a few of them. Originally the problem was only with a timer, I tried to fix it by making a new string that is specifically for that timer and a new variable that held the proper number. It worked for a while, but that can't be the problem because it changed again.

I also thought it might be a plugin we were using, but I removed it and there was no change. I also don't think it's a corrupt file because if it were any of the files we use, models, levels, images, or scripts, the engine would crash. As of now, these are the only files being used in the game.

See the thing is that like I said, not all the functions that use str_to_num do it. I had a similar problem with another str_ function recently, although I cannot remember the function. Once I made my own variation of the function it worked perfectly.

By the way, I tested copying the actual text to a txt file, and i tested it with a TrueType font, the characters it's actually giving me is a T and two odd symbols.

The only thing I can think of is that while it's trying to convert the number to a string, the string becomes corrupt and inputs the wrong string info.


- aka Manslayer101