17.08.2014, 22:25
Quote:
I think you can see the fault now. You used playerid instead of ID or any defined ID (the ID of the player the spectator is spectating). I guess you defined that as "playerb". I think you can solve the problem now.
|
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
{
new id, string[235], Float:H, Float:A;
GetPlayerHealth(id, H); GetPlayerArmour(id, A);
format(string,sizeof(string),"Health: %0.1f",H);
TextDrawSetString(Health1, string);
format(string,sizeof(string),"Armour: %0.1f",A);
TextDrawSetString(Armour1, string);
format(string,sizeof(string),"Money: %d",GetPlayerMoney(id));
TextDrawSetString(Money, string);
format(string,sizeof(string),"Name: %s",RPN(id));
TextDrawSetString(Name, string);
}