Let the oxidation number of Pt be x.
The overall charge of the complex ion is 2-.
The oxidation number of Cl is -1.
4 * (-1) + x = -2
x = +2
Therefore, the oxidation number of Pt in PtCl42- is +2.