Hi,
I tried to get data from Parse ( which works ), then when i want to store them in an array variable of Playmaker it only works for int values; as soon as it's string it doesn't store them correctly.
Any ideas why that could be? I attached the code :
}
Debug.Log("put whatever u like here");
query = new ParseQuery<ParseObject>("Data20Q");
query.FindAsync().ContinueWith(t =>
{
result = t.Result;
Debug.Log("data recieved!");
foreach (ParseObject obj in result)
{
ID = obj.Get<int>("ID");
answer = obj.Get<string>("Answer");
Debug.Log(obj.Get<string>("Answer"));
yes = obj.Get<string>("Yes");
Debug.Log(obj.Get<string>("Yes"));
no = obj.Get<string>("No");
Debug.Log(obj.Get<string>("No"));
Debug.Log("put whatever u like here");
fsmInterface.FsmVariables.GetFsmArray("IDArray").Set (idIndexArray,ID;
Debug.Log(idIndexArray);
fsmInterface.FsmVariables.GetFsmArray("answerArray").Set (idIndexArray,answer);
fsmInterface.FsmVariables.GetFsmArray("yesArray").Set (idIndexArray,yes);
fsmInterface.FsmVariables.GetFsmArray("noArray").Set (idIndexArray,no);
idIndexArray = idIndexArray + 1;
}
} );
}
The idea is to store each value from Parse to recreate the DB as multiple arrays, one per column.
Thanks for the help!
Nico