Hm... schreib mal ganz oben (ausserhalb der Timerfunktion) Public tx dazu. Sonst kanns sein, dass der jedes mal ne "frische" tx = 0 verwendet.