print(parrallel.waitForAny(os.pullEvent("timer"), os.pullEvent("mouse_click")))
returns:
EXPECTED FUNCTION!!!! GOT STRING U IDIOT!
help
Started by SpencerBeige, Feb 16 2015 01:19 AM
2 replies to this topic
#1
Posted 16 February 2015 - 01:19 AM
#2
Posted 16 February 2015 - 01:22 AM
os.pullEvent() does indeed return a string, among other things. You can't tell parallel.waitForAny() to run a string.
If you want parallel.waitForAny() to run functions with specific parameters, then you'll need to encapsulate your calls within other, new functions. Eg:
If you want parallel.waitForAny() to run functions with specific parameters, then you'll need to encapsulate your calls within other, new functions. Eg:
parallel.waitForAny(function() os.pullEvent("timer") end, function() os.pullEvent("mouse_click") end)
#3
Posted 16 February 2015 - 01:47 AM
thx!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











