wat

void OnGUI ()

Assets/test.cs(35,14): error CS1624: The body of test.OnGUI()' cannot be an iterator block because void’ is not an iterator interface type
Script error: OnGUI() can not be a coroutine.

we need to see the rest of the code… Because it is something more that this.

I bet you are trying to call StartCoroutine(OnGui);

using UnityEngine;
using System.Collections;
using System;
public class test : MonoBehaviour {
	public bool game;
	
	IEnumerator Start () 
	{
		int a = 1;
		int f = 1;
		string url = "http://www.decadesband.com/uploads/2/8/0/0/2800976/song_data.csv";
		WWW www = new WWW (url);
		yield return www;
		String [,] basic = new String [3,8];
		String [] split = [url]www.text.Split(new[/url] Char [] {',','\n'});
		foreach (String s in split)
		{
			if(f>7)
				{
					f=1;
					a = a + 1;
				}
			if(a<=2)
			{				
				basic[a,f] = s;
				f = f + 1;
			}
		}
		Debug.Log(basic[2,7]);
	}
	void gameon () 
	{
		game = true;
	}
	void OnGUI ()
	{
		if(game)
		{
			GameObject.Find("countdown").SendMessage("start");
			yield return new WaitForSeconds(3);
			
		}
	}
}

OnGUI can’t be a coroutine. It’s like Update; it runs every frame and can’t be delayed.

–Eric

Fantastic, we’ve lapsed back into answering threads with no meaningful topic title.

Hey it’s the weekend. What else are we supposed to do :wink:

Actually that’s true…in the rules: “Add relevant thread titles – Please do not post a thread titled “Please help I have a problem” as it is likely to get ignored.” And if I wasn’t procrastinating right now, I would have ignored it. :wink: Seriously, please do come up with more useful thread titles in the future.

–Eric