Quote:
Well, you've declared no vars, placed vars in strings (although the warning on line 72 is OK, because it's a string that KF will execute). You haven't posted the entire file, so there's no way to tell where the actual error is, and the two functions you did post generated 25 warnings in a sanity check. There's no indenting of loops, commenting, identification of code sections - I could go on...

I understand fully, Tommorow morning I am going to clean it up as best I can and post the entire thing in its terrible entirety...