Raised This Month: $ Target: $400
 0% 

get_user_name ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iloverain
Junior Member
Join Date: Jun 2012
Old 06-23-2012 , 14:49   get_user_name ?
Reply With Quote #1

Hi all! I'm trying to get a users name. So I looked at the get_user_name function.
I saw someone post:

Code:
new name[18] 
get_user_name(id, name, 17) 
client_print(id, print_chat, "Your name is: %s", name)


Now, what I don't understand is the array, name[18]. What exactly does this do?

Then there's get_user_name(id, name, 17). what exactly is "id" for (index)? Then name? Also why's it 17 now?

client_print(id, ...) Whats the index there for? What is the index?


Sorry I'm just getting started in scripting. This may probably be the noobiest question ever asked. Hah.

Thanks in advance.
iloverain 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 06:15.


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