Buttons won't display in for loop.

Trying to create a menu to display selectable buttons for skills in my game. Having two issues, first the buttons won’t display in the Rect() and second it keeps naming _skillSelected as skills instead of the index of cnt. With the debugs I found out it runs through the for loops twice even with a break in it and never gets to the second message.

private void SkillSelector(int id)
{

    _scrollBar = GUI.VerticalScrollbar (new Rect(100, 0, 10, Screen.height - 10), _scrollBar, 1, 10, 0);

	for(int cnt = 0; cnt < Enum.GetValues(typeof(SkillName)).Length; cnt ++)
	{
		Debug.Log("Gathering List!");
		if(cnt == Enum.GetValues(typeof(SkillName)).Length)
			break;
		if (GUI.Button(new Rect(265, 0 + (cnt * 25), 100, 25), ((SkillName)cnt).ToString()))
			Debug.Log("Select a button");
			_skillSelected = _toon.GetSkills(cnt).ToString();
			editing = false;
	}
}

Whitespace in C# does not change syntax. Adding an indent before _skillSelected = does not mean it will run after previous if passes. In fact, it will always run in your case. Without seeing the full code, that bit should look like this:

if (GUI.Button(new Rect(265, 0 + (cnt * 25), 100, 25), ((SkillName)cnt).ToString()))
{
    Debug.Log("Select a button");
    _skillSelected = _toon.GetSkills(cnt).ToString();
    editing = false;
}