
User
20 posts
Last seen: 3 years ago
GM Version: Studio
5 years ago
Does it display names in alphabetical order, or who signed on from first to last?
is it buy sign up date of GMech?
EDIT: Speaking of which, we should make a function just like this but retrieves the slot number by using a username. Though there could be some flaws, if used correctly, it could prove to be quite the benefit.
Luke's lover.

Administrator
64 posts
Last seen: 2 years ago
GM Version: Studio
5 years ago
The list is generated on the server according to who was there first. So if I joined a game 1 hour ago, and you joined the same game 30 minutes ago, and Debels joined the game 10 minutes ago, this would be the list:
1. Luke
2. Colton
3. Debels
This list is updated actively, so when a user closes the game/logs out, they get removed from the list. You can use GMech_Stats_User_Playing_Count() to get the number of playing users so you know how many times your loop needs to check.
For(i=1; i <= GMech_Stats_User_Playing_Count(); i+=1)
{
echo GMech_Stats_User_Playing(i); //Outputs username in this specific slot of the online list.
}
GMechanism Creator

User
20 posts
Last seen: 3 years ago
GM Version: Studio
5 years ago
str='';
For(i=1; i <= GMech_Stats_User_Playing_Count(); i+=1){
str+=GMech_Stats_User_Playing(i)+', ';
}
We don't use echoes in GML Luke. Gosh. xD
Luke's lover.