Raised This Month: $ Target: $400
 0% 

get_user_name help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 02-03-2010 , 19:55   Re: get_user_name help
Reply With Quote #4

Killer and Victim are 2 id's.
You must put 2 arrays that will contain the killers & victims name.
As fysiks said, you have to put:
Quote:
Originally Posted by fysiks View Post
PHP Code:
new szName[32]
get_user_name(idszNamecharsmax(szName))
client_print(0print_chat"Player name is: %s"szName
In get_user_name, instead of id you have to put Killer to get the Killer's name and put again the stuff but instead of Killer, put Victim.
Stuff will be this:
PHP Code:
new szVictimName[32], szKillerName[32]
get_user_name(VictimszVictimNamecharsmax(szVictimName))
get_user_name(KillerszKillerNamecharsmax(szKillerName))
client_print(0print_chat"Killer : %s, Victim: %s"szKillerNameszVictimName
Mxnn 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 07:27.


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