Thank you so much for your reply @MillaGamerF!
I like that way that you are showing, seems cleaner than the way I used to code. (I’m still learning)
The bad about this, is that I intended to not make a loop in order to find the value and index.
Its great to know that there are independant Threads working behind. I asked a question about Threads before in devForum. And yup, everyone told me that I had nothing to worry about. (Until now I havent any problems with that)… But…
I used a couple of game design/scripting engines before, like Unity and another weird one based on GTA SA:MTA… Cause Im still learning sometimes I create a huge mess with lots of systems that works and everything, but I had that problem before, like. While a script is reading something, another script change something inside something and suddenly I got a weird value that should not happen… (Probably I was more inexperienced and surely my mess was worst than the actual mess I do xD) But Im still a little scared about that stuff, so Im taking extra locks in order to that not happen.
I dont know what exactly you mean, cause table.find(playerList, playa)
its what Im using and its working great. Finding the player value and the whole node, by only providing a player instance, without doing any loop. Thats why it was weird that is not working while trying to find a String, and working perfect while finding an Instance.
You mean “shouldnt work” as, if its working, its an error, cause that should NOT work?
Yesterday in the end, I decided to use the loop like normal ppl does xD
While using the loop, theres no reason to use table.find inside it, not for now, not having any problems with finding the value and index using the loop. But, adding the table.find inside the loop still a good idea, sounds like being sure the data is not getting mixed as in other engines I tested.
Thank you so much for your help, and sorry for writting this much… I love to write :v