Gui.Label help

Hello, here is my small issue.

i have a key pad that the user has to put a number to unlock the door.

I made a gui.label that displays numberString (wich is just a String)

if they put more then 5 digits, it displays Error! in the label.

to validate if it’s the correct code, the user push the C button on the screen and it runs that function

function checkME()

{

if (numberString == “1234”)

{

numberString += “Access_Granted”;

openDoor.gameObject.animation.Play(“door_open”);

print (“Working BITCH!”);

}

if (numberString != “1234”)

{

numberString = “Access_Denied”;

print (“bad puppy”);

}

the issue is, once they click the C button on the keypad, it’s suppose to Display Granted or Denied depending if it’s right or false.

What happens instead, is nothing is being displayed.

Any idea?

Well, all you’re doing is assigning your variable to numberString which is all fine and dandy, but if you’re expecting to see a label pop up with that string you’ll need to create it…