Advertisement
NanoBob

nanotech display

Jun 25th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. textTable={
  2.   "NanoTech list of Staff : ",
  3.   "",
  4.   "Company Owner    : Darkbobo00",
  5.   "Secretary        : Fen2",
  6.   "Main scripter    : Darkbobo00",
  7.  
  8. }
  9.  
  10. m=peripheral.wrap("top")
  11. s=peripheral.wrap("right")
  12. function writeText()
  13.     m.setCursorPos(1,1)
  14.     m.clear()
  15.     m.setTextScale(1)
  16.     --[[nearPlayers=s.getPlayerNames()
  17.     --print(nearPlayers)
  18.     --print(nearPlayers[1])
  19.     if nearPlayers[1]~=nil then
  20.         print(nearPlayers)
  21.         nearPlayers=nearPlayers[1]
  22.         m.write("Hello ")
  23.         m.setTextColor(32)
  24.         m.write(nearPlayers)
  25.         m.setTextColor(1)
  26.     end]]
  27.     for line,text in ipairs(textTable) do
  28.         m.setCursorPos(1,line)
  29.         m.write(text)
  30.     end
  31. end
  32.  
  33. writeText()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement