Raised This Month: $51 Target: $400
 12% 

Tank Damage Announce by griffin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-25-2012 , 17:06   Re: Tank Damage Announce by griffin
Reply With Quote #12

Quote:
Originally Posted by eric0279 View Post
Thanks shavit, I test the next tank.

edit : doesn't works :
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 (%N).", name, g_iLastTankHealth);
}
>> It gives a random number instead of the nickname, I think it gives the userid?

The number of remaining HP to tank is not correct when the survivors are all on land.
A tank has 6000 hp in versus mode.

Screenshot :
first


second (Works) :


could you tell me how to fix this?
PHP Code:
        PrintToChatAll("[HP TANK] Il reste %N HP a (%d)."nameg_iLastTankHealth); 
I meant that.
__________________
retired
shavit is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode