[Pawn Inacuracy]GetPlayerHealth
#1

Don't know if this is just with the new 0.3 functions or if this happened in 0.2 as well but I just noticed this. In the pawno editor if you select GetPlayerHealth on the side bar with all the functions it says that the only argument is playerid. However, this is now the case because what you actually need is a player id and a variable to store the health float in.
Reply
#2

This was noted a few hours ago. But not listed as a bug, yet.
Reply
#3

I haven't done much with GetPlayerHealth in a while but I thought you could also do something like:

pawn Код:
new Float:Health;
Health = GetPlayerHealth(playerid);
I remember something like that working in the past but I could be wrong
Reply
#4

Quote:
Originally Posted by Lavamike
I haven't done much with GetPlayerHealth in a while but I thought you could also do something like:

pawn Код:
new Float:Health;
Health = GetPlayerHealth(playerid);
I remember something like that working in the past but I could be wrong
It's makes you define a float variable, otherwise it doesn't work. Yet the syntax in pawno, says to not specify one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)