This is pretty straightforward. The PDF of each $X_i$ is : $$f_{X_i} (x) = \dfrac{1}{\theta\sqrt{2\pi}}\cdot \exp\left[-\dfrac{1}{2}\left(\dfrac{x - \theta}{\theta}\right)^2\right]\quad\quad\text{for}~i=1, 2, \cdots, n$$
Thus, the likelihood equation will be : $$L = \prod_{i=1}^n \dfrac{1}{\theta\sqrt{2\pi}}\cdot \exp\left[-\dfrac{1}{2}\left(\dfrac{x_i - \theta}{\theta}\right)^2\right] = \dfrac{1}{\theta^n (2\pi)^\frac{n}{2}}\cdot \exp\left[-\dfrac{1}{2}\sum_{i=1}^n \left(\dfrac{x}{\theta} - 1 \right)^2\right]$$
Therefore, $$-\log L = n \log \theta +\dfrac{n}{2} \log (2\pi) + \dfrac12 \displaystyle\sum_{i=1}^n \left(\dfrac{x}{\theta} - 1 \right)^2$$
In order to maximize $L$ , we must have $\dfrac{dL}{d\theta} = 0$ . Differentiating $L$ , equating to $0$ , we get : $$\dfrac{n}{\theta} - \sum_{i=1}^n \left(\dfrac{x}{\theta} - 1 \right)\cdot \dfrac{x_i}{\theta^2} = 0\quad~\implies~\quad \left(\dfrac{1}{\theta} \right)^2\cdot \sum_{i=1}^n x_i ^2 - \left(\dfrac{1}{\theta}\right) \cdot \sum_{i=1}^n x_i - n = 0$$ Solving this quadratic equation, we get that : $$\text{MLE}(\theta) ~=~ \hat{\theta} ~=~ \dfrac{2 \cdot \displaystyle\sum_{i=1}^n x_i^2}{\displaystyle\sum_{i=1}^n x_i + \sqrt{\left(\sum_{i=1}^n x_i \right)^2 + 4n\cdot \sum_{i=1}^n x_i^2} }$$
Check my calculation once. I may be wrong somewhere.