17-10-2008, 05:39 PM
Hello,
I've been trying to get the health of another player by using GetPlayerVital(Parse(1), Vitals.HP) but for some strange reason it always returns 0. I know there isn't anything wrong with the ID because GetPlayerName(Parse(1)) works fine and if I change it to GetPlayerVital(MyIndex, Vitals.HP) it returns my health fine. I realize I could easily pass the health from the server with the packet containing the ID but I'll like to keep what I'm doing as optimized as possible.
Thanks for any help!
(Also I wasn't sure if this was correct area, this is to do with MS4)
I've been trying to get the health of another player by using GetPlayerVital(Parse(1), Vitals.HP) but for some strange reason it always returns 0. I know there isn't anything wrong with the ID because GetPlayerName(Parse(1)) works fine and if I change it to GetPlayerVital(MyIndex, Vitals.HP) it returns my health fine. I realize I could easily pass the health from the server with the packet containing the ID but I'll like to keep what I'm doing as optimized as possible.
Thanks for any help!
(Also I wasn't sure if this was correct area, this is to do with MS4)