Blockland Forums > Modification Help
How do you list players?
(1/1)
ShadowSpy123:
I'm making a chatbot and when I ask "Who's online?", I want it to list all the players in the game. I have everything set up except the bit of code where it lists the players. Thanks!
Plornt:

--- Code: ---for(%i=0;%i<NPL_List.rowCount();%i++)
{
     %name = getField(NPL_List.getRowText(%i),1);
}
--- End code ---
That bit of code loops through all of the names in the player list GUI.
Navigation
Message Index

Go to full version