help with health
#1

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new duelSTR[200];
   
    new Float:H,Float:A;
        GetPlayerHealth(playerid,H);
        GetPlayerArmour(playerid,A);
   
    format(duelSTR,sizeof(duelSTR),"%s killed %s (life reaming: %d)",GetName(killerid),GetName(playerid),H+A);
    SendClientMessageToAll(0xD5D48FFF,duelSTR);
    return 1;
}
i cant see life reaming in the game some one can help me?
Reply
#2

somone help me?
Reply
#3

try this
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new duelSTR[200];
   
    new Float:H,Float:A;
        GetPlayerHealth(killerid,H);
        GetPlayerArmour(killerid,A);
   
    format(duelSTR,sizeof(duelSTR),"%s killed %s (life reaming: %d)",GetName(killerid),GetName(playerid),H+A);
    SendClientMessageToAll(0xD5D48FFF,duelSTR);
    return 1;
}
Reply
#4

not working

saying life reaming: 1594871
Reply
#5

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new duelSTR[200];
   
    new Float:H,Float:A;
        GetPlayerHealth(killerid,H);
        GetPlayerArmour(killerid,A);
   
    format(duelSTR,sizeof(duelSTR),"%s killed %s (life reaming: %f)",GetName(killerid),GetName(playerid),H+A);
    SendClientMessageToAll(0xD5D48FFF,duelSTR);
    return 1;
}
its and float value so use %f
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)