Health..?
#1

pawn Код:
new Float:hp;
        GetPlayerHealth(playerid, hp);
        SetPVarFloat(playerid, "rhp", hp);
        SetPlayerHealth(playerid, 9999);
Then I call a function to set it back to the old health. The rest of the function works fine

pawn Код:
SetPlayerHealth(playerid, GetPVarFloat(playerid, "rhp"));
But it stays as 9999.

Help!
Reply
#2

Well I dont know about player var, try this
New oldhealth[MAX_PLAYERS];
oldhealth[playerid] = getplayerhealth(playerid, healthvariable);
Reply
#3

But GetPlayerHealth doesn't return anything...
Reply
#4

Euh, bump.

Can't seem to get this fixed, even if I use a regular variable or a PVar.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)