Jump to content




How do you get this working correctly as a list.


  • You cannot reply to this topic
3 replies to this topic

#1 miguemely

  • New Members
  • 2 posts

Posted 29 September 2013 - 08:46 PM

http://pastebin.com/E8seJG5x (server)

http://pastebin.com/w2kChL1U (client)

I have these two scripts, and I adapted it to what we were doing with OpenPeripherals and PlayerDetectors.
Now my question here is, how do I set it so on the server, it reads the list, and the client sends a player name, and if that player names matches one in the list, then do stuff.?

Thanks!
Miguel R.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 29 September 2013 - 09:33 PM

Split into new topic.

#3 jay5476

  • Members
  • 289 posts

Posted 30 September 2013 - 08:29 AM

server code
names = {you,friend,another friend} --# put appropriate names
while true do
  id,msg,dis = rednet.receive()
  for key,name in pairs(names) do
     if msg == name then
      --# send info for client to do stuff

     end
  end
end


#4 miguemely

  • New Members
  • 2 posts

Posted 30 September 2013 - 03:34 PM

Thanks jay!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users