Raised This Month: $ Target: $400
 0% 

Small question for get_user_name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 04-10-2011 , 10:28   Small question for get_user_name
Reply With Quote #1

And my question is this, I used this before:

PHP Code:
        new targetname[32]
        
get_user_name(tempidtargetname31)
        
        
client_print(idprint_chat"%s",  targetname
Now I found this somewhere and it works perfectly and I also like the way, I don't need to add make everytime a holder.

PHP Code:
client_print(idprint_chat"%s"username(tempid))

stock username(id)
{
    new 
player_name[32]
    
get_user_name(idplayer_namesizeof(player_name))
    
    return 
player_name

Is it ok to use it like that and would there be any big difference?
bibu is offline
 


Thread Tools
Display Modes

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 19:53.


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