Code:
thread dummy();
self thread pickups();
call it like this and should work, if not, try thread pickups();