26.01.2012, 18:55
Ok, firstly why are you checking two players at time:
And whats that "T" doing before "playerid"??
Try this:
OR:
pawn Код:
"ii",INVALID_PLAYER_ID,Tplayerid
Try this:
pawn Код:
new Float:Health;
new Float:Armour;
GetPlayerHealth(playerid,Health);
GetPlayerArmour(playerid,Armour);
SetTimerEx("HPCheckTimer",500,0,"iff",playerid,Health,Armour);
pawn Код:
new Float:Health;
new Float:Armour;
GetPlayerHealth(playerid,Health);
GetPlayerArmour(playerid,Armour);
SetPVarFloat(playerid,"PHealth",Health);
SetPVarFloat(playerid,"PArmor",Armour);
SetTimerEx("HPCheckTimer",500,0,"i",playerid); // and then check it with GetPVarFloat