Hello!
I am trying to set up multiplayer using Corona Cloud and integrating it has been pretty smooth so far. I am now at the point where the player can type in a name, the game finds it, and sends them a game request. It is not working out.
I am using the friendListener from the docs and I cannot seem to get it to work.
http://docs.coronalabs.com/guide/cloud/multiplayer/index.html
I can add a keyword, find the user, print “users” (event.response), but trying to get any data from it fails.
if ( users[i].username == searchQuery ) then
This returns the error, “attempt to index field ‘?’ (a nil value)” I tried all the different tags (id, name, etc.) and they all are nil. Am I missing something obvious? Assistance would be greatly appreciated.