Can't display a string in a label...

I need to display a string in a label. The string is originally an integer, so I used .ToString. The label isn’t displaying at all though. Here’s the code that matters

function OnGui() {
	if (GuiOn == true){
		GUI.Label(Rect(10,10,150,100), SpawnerID.ToString());
		}
	}

Edit: It’s not the GuiOn variable that’s preventing it from working. I tried setting the GuiOn variable to always on and it still doesn’t work.

I’m using Javascript obviously.

OnGUI is not capitalized properly