dynamic3dtextlable error
#10

Код:
forward NameTag(playerid);
public NameTag(playerid)
{
    new Float:health,Float:armour, string[40];
    GetPlayerHealth(playerid,health);
    GetPlayerArmour(playerid,armour);
    format(string,sizeof(string),"%d hp and %d armour",health,armour);
    UpdateDynamic3DTextLabelText(PlayerInfo[playerid][pSpecialTag], -1, string);
    return 1;
}
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    new string[40],Float:hp,Float:ar;
    GetPlayerArmour(playerid,ar);
    GetPlayerHealth(playerid,hp);
    format(string, sizeof(string), "%d hp and %d armour",hp,ar);
    UpdateDynamic3DTextLabelText(PlayerInfo[playerid][pSpecialTag], -1, string) 
    return 1;
}
Try now.. If is there error or warning, number the lines, ty
Reply


Messages In This Thread
dynamic3dtextlable error - by TitoRayne - 29.12.2017, 12:08
Re: dynamic3dtextlable error - by Gameluner - 29.12.2017, 12:15
Re: dynamic3dtextlable error - by TitoRayne - 29.12.2017, 12:19
Re: dynamic3dtextlable error - by TitoRayne - 29.12.2017, 12:22
Re: dynamic3dtextlable error - by TitoRayne - 29.12.2017, 12:30
Re: dynamic3dtextlable error - by Gameluner - 29.12.2017, 12:39
Re: dynamic3dtextlable error - by TitoRayne - 29.12.2017, 12:40
Re: dynamic3dtextlable error - by TitoRayne - 29.12.2017, 12:45
Re: dynamic3dtextlable error - by TitoRayne - 29.12.2017, 12:47
Re: dynamic3dtextlable error - by Gameluner - 29.12.2017, 12:49

Forum Jump:


Users browsing this thread: 3 Guest(s)