Alazam Posted February 7, 2014 Share 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 Link to comment
myonlake Posted February 7, 2014 Share 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. Link to comment
Alazam Posted February 7, 2014 Author Share Posted February 7, 2014 i want create a variable for each player who enter the server Link to comment
myonlake Posted February 7, 2014 Share 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. Link to comment
Alazam Posted February 7, 2014 Author Share Posted February 7, 2014 thank but how i can creeate array? Link to comment
myonlake Posted February 7, 2014 Share Posted February 7, 2014 Read the links that I posted. Link to comment
TAPL Posted February 7, 2014 Share Posted February 7, 2014 You can get every player connected to the server with this function: getElementsByType Link to comment
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