This will wait for input, though it wont respond to getting it:
Spoiler
This wont draw errors, but wont wait for input:
Spoiler
Any ideas? Thanks in advance!
Posted 21 July 2015 - 01:00 AM
Posted 21 July 2015 - 01:27 AM
local f1 = function()
while true do
--do the event stuff here
end
end
local f2 = function(...)
--the same as above
end
parallel.waitForAll(f1, function()
f2("Random","arguments","foo","bar")
end)
Edited by H4X0RZ, 21 July 2015 - 02:33 AM.
Posted 21 July 2015 - 01:40 AM
H4X0RZ, on 21 July 2015 - 01:27 AM, said:
parallel.waitForAll(f1, function()
f2("Random","arguments","foo","bar")
end
Posted 21 July 2015 - 02:47 AM
H4X0RZ, on 21 July 2015 - 01:27 AM, said:
local f1 = function()
while true do
--do the event stuff here
end
end
local f2 = function(...)
--the same as above
end
parallel.waitForAll(f1, function()
f2("Random","arguments","foo","bar")
end)
Posted 21 July 2015 - 06:15 AM
parallel.waitForAll(e(), r())Remove the parentheses after 'e' and 'r'. Here you're calling them, but you want to pass them to the function instead. Fixed code:
parallel.waitForAll(e, r)
Posted 21 July 2015 - 07:21 PM
flaghacker, on 21 July 2015 - 06:15 AM, said:
parallel.waitForAll(e(), r())Remove the parentheses after 'e' and 'r'. Here you're calling them, but you want to pass them to the function instead. Fixed code:
parallel.waitForAll(e, r)
0 members, 1 guests, 0 anonymous users