Alazam Posted February 7, 2014 Posted February 7, 2014 hello i need some help i want to create a variable for each player join like player 1= variable1 ext ext and call it how i can make that? thank for further help
myonlake Posted February 7, 2014 Posted February 7, 2014 I don't understand what you want. Can you explain a little bit more on why you want it and how you want it.
Alazam Posted February 7, 2014 Author Posted February 7, 2014 i want create a variable for each player who enter the server
myonlake Posted February 7, 2014 Posted February 7, 2014 You can use an array instead. Initialize an array and each time a player joins, insert the player to the array and when they leave, null the array value.
TAPL Posted February 7, 2014 Posted February 7, 2014 You can get every player connected to the server with this function: getElementsByType
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now