Raised This Month: $ Target: $400
 0% 

set randomly a name to each player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-06-2014 , 21:49   Re: set randomly a name to each player
Reply With Quote #1

name[id] should instead be g_szNames[NameIndex[id]]

Oh, and you never set the user's name.

Also, if you are going to re-assign names on every round, you need to reset the NameUsed array to false.

You should remove entirely the "name" array. It serves no purpose.
__________________

Last edited by fysiks; 08-06-2014 at 21:57.
fysiks is offline
internel
Member
Join Date: Nov 2012
Old 08-07-2014 , 19:04   Re: set randomly a name to each player
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
name[id] should instead be g_szNames[NameIndex[id]]

Oh, and you never set the user's name.

Also, if you are going to re-assign names on every round, you need to reset the NameUsed array to false.

You should remove entirely the "name" array. It serves no purpose.
thank you!! , that helped

thanks fysiks and Flick3rR for answering
internel 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 13:13.


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