I have the following definition for Neumann functions (in terms of Bessel functions)
$$ Y_n(z) = \frac{J_n(z) \cos(n\pi) - J_{-n}(z)}{\sin(n \pi)}. $$
Now my problem is concerned only with $n \in \mathbb{Z}^{\geq 0}$. So I come up with two problems with this definition.
$\sin(n\pi) = 0$ for all integers $n$. Now I have seen that $Y_n(z)$ is defined as it's limit as $n \rightarrow$ integer, but how does this help? That limit is still undefined, or am I missing something?
This second problem rests on two facts: (i) $\cos(n\pi) = (-1)^n$, and (ii) $J_{-n}(z) = (-1)^nJ_n(z)$ for integer $n$. With these two in mind it seems like for all integer $n$ and for all $z$, $Y_n(z)=0$!
I think I am going wrong somewhere very basic here but I can't seem to figure it out so I could use some help. Looking at plots of the Neumann function of real argument it is clear this is not what is going on.

You seem to think of $n$ in the definition of $Y_n$ as always being an integer. However, $n$ should be thought of as a real number. In that case $\sin(n \pi) \neq 0$, and similarly $\cos(n \pi) \neq (-1)^n$ (generally).