such as:
chat = peripheral.wrap("left") while true do event,player,message = os.pullEvent("chat") print(player,": ",message) end
Posted 15 March 2015 - 03:42 AM
chat = peripheral.wrap("left") while true do event,player,message = os.pullEvent("chat") print(player,": ",message) end
Posted 15 March 2015 - 04:12 AM
Posted 15 March 2015 - 04:27 AM
valithor, on 15 March 2015 - 04:12 AM, said:
Posted 15 March 2015 - 05:09 AM
CloudNinja, on 15 March 2015 - 04:27 AM, said:
valithor, on 15 March 2015 - 04:12 AM, said:
Edited by valithor, 15 March 2015 - 05:10 AM.
Posted 15 March 2015 - 05:23 AM
Posted 18 March 2015 - 08:10 PM
local chat = peripheral.wrap("left") while true do event, side, player, message = os.pullEvent("chat_message") print(player,": ",message) endFirst of all, the event you're looking for is "chat_message", not "chat". We only use the "chat" variable for calling functions; not for events. The string as the first argument in "os.pullEvent" is a filter, so it would discard the event "chat_message" if we were looking only for "chat".
Edited by Atenefyr, 18 March 2015 - 08:12 PM.
Posted 18 March 2015 - 08:52 PM
Atenefyr, on 18 March 2015 - 08:10 PM, said:
local chat = peripheral.wrap("left") while true do event, side, player, message = os.pullEvent("chat_message") print(player,": ",message) endFirst of all, the event you're looking for is "chat_message", not "chat". We only use the "chat" variable for calling functions; not for events. The string as the first argument in "os.pullEvent" is a filter, so it would discard the event "chat_message" if we were looking only for "chat".
Edited by valithor, 18 March 2015 - 08:52 PM.
0 members, 1 guests, 0 anonymous users