Money System

I have a money script but I cant figure out how to update the amount of money?
here is my money script
var money : int = 100;
var GUImoney : GUIText;

function AddMoney(amount :int){
    money += amount;
    GUIMoney = money.ToString();

You are trying to assign to a GUIText variable a String value in the last line. That’s not possible.

What you mean to do is set GUIText.text, which is a String property of the GUIText class.