Player Health problem
#1

I have a trouble with health float and a float variable. For example I want to make serversided health.

Here's my code which i use

pawn Code:
enum PlayerInfo
{
    Float:pHealth,
    Float:pArmor,
}
new pInfo[MAX_PLAYERS][PlayerInfo];


new Float:Health, Float:Armor;
GetPlayerHealth(playerid, Health);
GetPlayerArmour(playerid, Armor);
pInfo[playerid][pHealth] = Health;
pInfo[playerid][pArmor] = Armor;
So what I am trying to do here is to set players current HP into server sided HP, but unfortunately it doesn't work. Whenever I try to check my variable pInfo[playerid][pHealth] or pInfo[playerid][pArmor] they are 0 both they just don't change with my code. Any help would be appreciated.
Reply


Messages In This Thread
Player Health problem - by Gilbonzo - 31.01.2014, 21:49
Re: Player Health problem - by MisterTickle - 31.01.2014, 22:48
Re: Player Health problem - by erminpr0 - 31.01.2014, 23:01
Re: Player Health problem - by EiresJason - 31.01.2014, 23:04
Re: Player Health problem - by Gilbonzo - 31.01.2014, 23:26
Re: Player Health problem - by CuervO - 31.01.2014, 23:54
Re: Player Health problem - by Gilbonzo - 01.02.2014, 10:03
Re: Player Health problem - by CuervO - 01.02.2014, 10:16

Forum Jump:


Users browsing this thread: 3 Guest(s)