Raised This Month: $ Target: $400
 0% 

Need Help with get_players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eXist
Member
Join Date: Apr 2005
Old 04-18-2005 , 07:13   Need Help with get_players
Reply With Quote #1

The best way I can explain this is through example in my code.
Code:
get_players(players, playercount, "a")     player = players[random_num(0, playercount)]
As you can see, through this code, I've selected a random alive user and his user id is stored in the variable player. Now, my question is, how do I take that user id and get that users name from it?

Thanks for your help eXist.
eXist is offline
slurpycof
Senior Member
Join Date: Nov 2004
Old 04-18-2005 , 09:10  
Reply With Quote #2

Code:
new name[32] get_user_name(player,name,31)
slurpycof is offline
eXist
Member
Join Date: Apr 2005
Old 04-18-2005 , 15:29  
Reply With Quote #3

Thanks alot

eXist
eXist 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 10:02.


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