Raised This Month: $ Target: $400
 0% 

Weapon Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daNzEt
Senior Member
Join Date: Sep 2010
Location: Romania
Old 01-06-2014 , 07:43   Re: Weapon Name
Reply With Quote #1

Thanks!

But look what server print in my chat:

[IMG]http://s28.************/5caqodp5p/img.png[/IMG]

PHP Code:
public event_DeathMsg(id)
{
    new 
iKiller read_data(1
    new 
iVictim    read_data(2)     
    
    if(
iKiller == iVictim
    { 
        return 
PLUGIN_HANDLED
    } 
    
    else 
    {     
        new 
name[32];
        
get_user_name(iKillername31)
        
        new 
szWeapon32 ], iWeapon get_user_weaponiKiller );
        
get_weaponnameiWeaponszWeaponcharsmaxszWeapon ) );
         
        new 
health get_user_health(iKiller); 
         
        
chat_color(iVictim"!nKilled by !t%s !nwith !g%d !nand remained with !g%d !nhp"nameszWeaponhealth
    } 
    
    return 
PLUGIN_HANDLED

As i said i need to print weapon name not weapon string ...

Last edited by daNzEt; 01-06-2014 at 07:45.
daNzEt is offline
Send a message via Yahoo to daNzEt Send a message via Skype™ to daNzEt
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-06-2014 , 07:52   Re: Weapon Name
Reply With Quote #2

%d is for decimal (base10) numbers.
%s is for strings. Use this.
__________________
fysiks is offline
Reply



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 20:36.


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