Thursday 30 November 2017

Push keeps overwriting previous data in an array

I'm trying to keep track of all users that join on a web game. All of sudden only 1 user is in the playerArray. My code seems to replace the last value(s) in my array with the new one. Not sure how this is happening.http://ift.tt/2AL1Gbt can I fix this?Thanks!EDIT: This code is on the server side.

Submitted November 30, 2017 at 08:24PM by Akidus

No comments:

Post a Comment