Hi. Thanks for the reply.
However can I just ask why them bieng global is a bad thing. Also what's the difference static and global? I think I know, but I might be wrong. Cheers.
EDIT: What the hell? Why's my reply at the top??? Oh well ...
I also forgot to mention in my origional post that I get stuck in the main function while loop. Thats why I checked the variables, to see if they were the same and even if they are, I still get stuck in the loop. What's that about?