startcourntine dose not exist in the current context
dont get why the counrtine isnt working.
using UnityEngine;
using System.Collections;
public class Register : MonoBehaviour {
// This script sends informatiopn to create a game file on the server, then promts the plsyer to
// procede to paying for their subscription to pay for their account for that month.
public string RegisterLink = "http://mysite/register.php";
public string Username = "";
public string password = "";
public string Email = "";
public GameObject Complete;
//-----------------------------------------------------------------------------------
public void register (){
startcourntine(RegisterNewPilot);
}
//-----------------------------------------------------------------------------------
private IEnumerator RegisterNewPilot(){
WWWForm form = new WWWForm();
form.AddField("Username", Username);
form.AddField("Email", Email);
form.AddField("Password", password);
WWW w = new WWW(RegisterLink, form);
yield return w;
if(w.error){Debug.log("error please try again");
} else{
Complete.setActive(true);
}
}
} // end class.
I'm suprised that you can run this code(Errors)! It's called StartCoroutine(RegisterNewPilot()); and Complete.SetActive(true); and last thing is you can convert string to bool in line 31
StartCoroutine, not startcourntine.
At least for me even google.com suggests the right way to spell it when i search for 'startcourntine' and that makes me wonder how much you tried to investigate the problem before posting here :) sometimes that takes way less typing and waiting that posting a question
If it doesn't work even when spelled correctly, please edit your question
Your answer
Follow this Question
Related Questions
How to find all AudioClips in Resources folder and play them? 1 Answer
Problem: trigger within object 1 Answer
Class structure for diferent item types and items that do different things. 0 Answers
Which music goes? 0 Answers
Rigidbody changes reference in play time to the game object that the script is attached to 1 Answer