set randomly a name to each player
I need some help with this >.<, I'm want to set to each player a Name/Tag/etc, for example:
PHP Code:
I'm trying to figure up, but I don't get anywhere >.<, any help please? |
Re: set randomly a name to each player
Well, worked fine on first view. Had no time to get in details. Just have to replace all the names with your ones.
PHP Code:
|
Re: set randomly a name to each player
that's exactly what I was talking about!!! thank you so much :D!
|
Re: set randomly a name to each player
sorry for the double post, but I need some help with this again. I'm playing with it and tried to set the name into a var. So when the round starts, each player receives a message saying his/her name.
"Your name is London/Manchester/Hong-Kong/Santiago" But it only says the number of the name and not the word. (Like "Your name is 9" instead of "Your name is name9") PHP Code:
|
Re: set randomly a name to each player
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. |
Re: set randomly a name to each player
Quote:
thanks fysiks and Flick3rR for answering :) |
| All times are GMT -4. The time now is 13:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.