If there existed an irrational t number such that f(t) was not equal to 0 then f(x) would not be continuous, there would be a sharp change in f(x) from 0 to f(t) to 0.

Try to express that formally in mathematics

It might help to know that there is an irrational number between every two rational numbers and vice versa.