Given light-cone coordinates, and some worldline parameterised by some arbitrary parameter $\tau$.
$$x^{+} = \frac{1}{\sqrt{2}}(x^0+x^1),$$ $$x^{-} = \frac{1}{\sqrt{2}}(x^0-x^1).\tag{2.50}$$
And the lagrangian:
$$L=-m\sqrt{-\dot{x}^2},\tag{11.3}$$
$$p_\mu=\frac{\partial L}{\partial\dot{x}^\mu}= \frac{m\dot{x}_\mu}{\sqrt{-\dot{x}^2}}.\tag{11.4}$$
In the light-cone gauge; $$x^+ = \frac{1}{m^2}p^+\tau.\tag{11.7+29}$$
Which implies; $$\frac{\partial}{\partial \tau} = \frac{p^+}{m^2}\frac{\partial}{\partial x^+}\rightarrow \frac{p^+p^-}{m^2}.\tag{11.33}$$
My textbook then hypothesised the hamiltonian of the system to be:
$$H= \frac{p^+p^-}{m^2}=\frac{p^Ip^I+m^2}{2m^2},\tag{11.34}$$
where the index $I$ denotes transverse coordinates.
I am wondering where eq. (11.34) comes from as I've been trying to show this from the definition of the hamiltonian.
$$H= \dot{x}^\mu p_\mu - L,$$ $$H= \frac{\sqrt{-\dot{x}^2}}{m}p^\mu p_\mu + m\sqrt{-\dot{x}^2}.$$
Plugging in from the system that $p^\mu p_\mu = -m^2$ we obtain zero which is different to what my text says.
(Using the differential relation ship I think its possible to show only the $p^+$ contribution to the momentum is non-zero and we can reduce the hamiltonian down to a similar form they have, however since $p^-$ is zero in this argument it is still zero.)
The textbook is: A First course in string theory, Barton Zwiebach, second edition, page 222. The lagrangian formalism is on page 216-217.