Hey guy's, I'm still working on that Inventory stuff! My issue today, is with GUI.Button. Iv scavenged around online, and have tried to CopyPasta example code, and even that doesn't work!
So, What I'm trying to do is when the game pauses, I have a series of buttons that pop up. Those button's are created by reading the player's inventory value, and returning buttons. The problem is, the GUI.Button command always returns errors. (error CS0119: Expression denotes a
Here's some code clips, to help bring the problem to light...
Everything works fine until it's time to create a button. This did not work, even before I threw in the For Statement, I was just trying to find another work around before I asked. Any help is appreciated guys! Thanks!
of what type is the variable heal1items? I think you are feeding an int in the Button where it expects a String?
Maybe try GUI.Button(Rect(...), heal1items.ToString());
Edit: Sorry, just saw that the typing is right there in the script -.-' d'oh...
Edit2: No, wait. heal1Texture is declared in the script, heal1items isn't... oO dear lord, I better go to bed... sorry I'm no help... >_<
can you write down a full script for this?
answered Nov 09 '12 at 08:55 AM