Posted 08 June 2016 - 07:33 PM
Sorry if this comes out "Nooby" i have personally never use the forum and are not the best programmer, but my questions is how can i get the players name to show. i have no fully functional program, however i would like to know why i get an odd table when using the sensor to try to get the name of the people inside the range :
code:
sensor = peripheral.wrap("top") – where the sensor is located–
players = sensor.getPlayers()– when i try to print it i only get an odd table containing something like table: 21186106, how can i fix this?
print(players)
how can i get this to only show like(FeedMeCookies, instead of table: 21186106). i have tried textutils.serialize to help out, but nothing seems to help. I just wanna know the name of players inside.
code:
sensor = peripheral.wrap("top") – where the sensor is located–
players = sensor.getPlayers()– when i try to print it i only get an odd table containing something like table: 21186106, how can i fix this?
print(players)
how can i get this to only show like(FeedMeCookies, instead of table: 21186106). i have tried textutils.serialize to help out, but nothing seems to help. I just wanna know the name of players inside.