View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-24-2012 , 17:20   Re: Tank Damage Announce by griffin
Reply With Quote #8

Quote:
Originally Posted by eric0279 View Post
Code:
PrintRemainingHealth()
{
        if (!g_bEnabled) return;
        new tankclient = GetTankClient();
        if (!tankclient) return;
     
        decl String:name[MAX_NAME_LENGTH];
        if (IsFakeClient(tankclient)) name = "AI";
        else GetClientName(tankclient, name, sizeof(name));
        PrintToChatAll("[HP TANK] Il reste %d HP a (%s).", name, g_iLastTankHealth);
}
The player's name does not appear, could you tell me how to fix this?

cordially
%N instead of %d.
__________________
retired
shavit is offline