Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
computercraft sensor, outputting names?
Post Body

I'm trying to get a computercraft sensor to work with a monitor, putting the name of whoever's close on it. there's a few problems though.

apparently sensors have changed in that they now output tables with subtables that contain the name that i want to display.

code looks like this:

while true do

players = sensor.getPlayers()

for number,name in pairs(players) do

for a,b in pairs (name) do

write (b)

when i try to work it out it first displays something weird, and after that output the name. if there is any computercraft wizard that can help me out, it would be much appreciated!

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
16,175
Link Karma
6,721
Comment Karma
9,433
Profile updated: 1 week ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago