Hello Everyone im trying to make an Inventory and ive been watching a few tutorials but not for love nor money can i get it to work and if thats not bad enough it keeps pushing an error though:
Error: (GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
Heres the line of code Triggering the Error
statsScroll = GUI.BeginScrollView(new Rect(buttonX-10, buttonY+120, 315, 360), statsScroll, new Rect(buttonX+315, buttonY+120, 295, 350+(20*l)));
for(int x = 0; 0 < playerInv.playerInventory.Count; x++)
{
l = x;
if(GUI.Button(new Rect(buttonX, buttonY+120+(20 * x),200, 100),playerInv.playerInventory[x].itemName, textstyle))
{
Debug.Log(playerInv.playerInventory[x].itemName);
}
return;
}
GUI.EndScrollView();
Thanks In Advance
Joshua Creighton