2 int's displayed in one GUIText.

Okay, I have this

guiText.text = "" +displayMinutes ":" +displaySeconds;

attached to a GUIText object. Unfortunately it doesn't work...

guiText.text = "" +displayMinutes;

works perfectly, as does

guiText.text = ":" +displaySeconds;

I just can't put them together.

Obviously the rest of this script is a timer script, which works correctly. So, what do I do...

Did you mean

guiText.text = "" + displayMinutes + ":" + displaySeconds;

Though I would recommend

guiText.text = displayMinutes.ToString() + ":" + displaySeconds.ToString();

for clarity.

Adding strings together with + works fine. Another option though is to use string formatting, like so ...

guiText.text = string.Format("{0}:{1}", displayMinutes, displaySeconds);

Whether you like the syntax better is a matter of taste, but this also gives you much more control over how things are formatted. See the documentation for String.Format for details.

Every time you want to add something to a guitext then you will need to have +s in between.

When I was first learning I used to memorized by remembering how I write text:

Lets say I want to add several things to a guiText I used to compare it to a grocery list e.g:

My shopping list!

I need: Milk, bread, dogfood, 20 tampons, candy, batteries. And so on. If I wanted to use that in a guiText then i would say:

guiText.text = "" + Milk + dogfood + 20 tampons + candy + ":" + batteries;

If you get my point I just replaced the commas with +s.

I thought I would tell you this because it helped me a lot when I was first learning.