#Push in array doesn't work?
10 messages · Page 1 of 1 (latest)
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
Are those two lines immediately after each other like you showed here? Or is the actual code a little more complex?
Then probably client.lastPseudo isn’t what you think it is in the other file. Console.log it there to find out
console.log(typeof client.lastPseudo) then
client.position = "aa"; //WORKS
client.lastPseudo = []; //DOESN'T WORK
Return string instead of object..
That is not helpful… did you try this?👆
Then do a project wide search for client.lastPseudo, where else do you assign to it?
How so?