- Home /
Question by
zak666 · Oct 02, 2015 at 09:07 AM ·
scripting problem
`string' does not contain a definition for `error' and no extension method `error' of type `string' could be found (are you missing a using directive or an assembly reference?)
Hi gang were do i Assign error to so unity knows if their is an error?
IEnumerator GetUserAccount(int Gold, string name)
{
//all acount items, here...
string hash = MD5.Md5Sum(secretKey);
string Account_get = GetAccount + "name=" + name + "hash=" + hash;
yield return Account_get;
if (Account_get.error != null)
{
print("Their was an error getting Account, Account dose not Exist" + Account_get.error);
}
else
{
//DISPLAY EACH STRING ITEM AS SEPRET TEXT....
gameObject.GetComponent<GUIText>().text = Gold.ToString();
}
}
best overloaded method error? i have assigned callback function in the script. to get id data
void Start()
{
FB.API("/me?fields=id", Facebook.HttpMethod.GET, APICallback);
StartCoroutine(GetUserAccount());
}
Comment
Answer by Veldars · Oct 02, 2015 at 09:45 AM
I not sure, but it seems to me that you are trying to do a web request with a string....
maybe you should try a things like that :
WWW Account_get = new WWW("name=" + name + "hash=" + hash);
yield return Account_get;
if (Account_get.error != null)
...
I hope this help
Your answer

Follow this Question
Related Questions
Need help with dialogue system script 0 Answers
Is there a reason why Unity would be able to read one variable in a script and not another? 1 Answer
After exporting my project from my PC to my laptop the physics of my game work differently. 1 Answer
Left side panel in monodevelop 1 Answer
Script problem 1 Answer