I'm copy&pasteing the code i was given to write, but it works in threads not in my sig! Plz someone tell me what I'm doing wrong?

Works in Thread:


Doesnt work in sig!?!?

Code: