SHOW:
|
|
- or go back to the newest paste.
1 | -- ############################## | |
2 | - | -- msg_receiver test1 |
2 | + | -- msg_receiver test2 |
3 | ||
4 | rednet.open("right") | |
5 | ||
6 | while true do | |
7 | local sender_id, message, distance = rednet.receive() | |
8 | ||
9 | -- loadstring(message)() | |
10 | local func = loadstring(message) | |
11 | func() | |
12 | ||
13 | print("#",sender_id,": ",message) | |
14 | end |