[SOLVED] Health stuff - Help please!
#1

solvde
Reply
#2

well couldn't u tell the ppl how u solved ur probs?
and change ur subject to [SOLVED]?
Reply
#3

Quote:
Originally Posted by saiberfun
well couldn't u tell the ppl how u solved ur probs?
and change ur subject to [SOLVED]?
i got this new problem now
Reply
#4

I believe you're saving player's health in float format.
so, you should change this:
pawn Код:
new hp = PlayerInfo[playerid][pHealth];
to:
pawn Код:
new Float:hp = PlayerInfo[playerid][pHealth];
Reply
#5

Quote:
Originally Posted by Don Correlli
I believe you're saving player's health in float format.
so, you should change this:
pawn Код:
new hp = PlayerInfo[playerid][pHealth];
to:
pawn Код:
new Float:hp = PlayerInfo[playerid][pHealth];
i tried that and then when i did

setplayerhealth(playerid,float:hp);


that had tag mismatch
Reply
#6

Use:
pawn Код:
SetPlayerHealth(playerid, hp);
without Float: in front of hp.

If that doesn't work, then use:
pawn Код:
SetPlayerHealth(playerid, floatround(hp));
Reply
#7

Both Have tag mis match

Код:
	new float:hp = PlayerInfo[playerid][pHealth];
	SetPlayerHealth(playerid, hp);
Reply
#8

Quote:
Originally Posted by Mowgli
Both Have tag mis match

Код:
	new float:hp = PlayerInfo[playerid][pHealth];
	SetPlayerHealth(playerid, hp);
I told you to use Float:hp and not float:hp.
Reply
#9

ahaha , i neede F not f this whole time...thanks!
Reply
#10

You're welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)