The type 'float' does not have a visible constructor that matches the argument list

Hi all, I’m trying to make a simple gui script that will determine how far I moved and add that to my score. Right now though I seem to be encountering a problem where my function OnGUI is not recognizng my player score variable.

Here is the code:

 #pragma strict

var playerScore: float = 0;

function Update () 
	playerScore += Time.deltaTime;

function IncreaseScore(amount : int)
	playerScore += amount;

function OnGUI()
{	//creates a gui label that will multiply our current score times 100
	GUI.Label(new Rect(10, 10, 100, 30), "Score: " + (int) (playerScore * 100));

You can’t cast like that in Unityscript. Leave playerScore as a float, and use

"Score: " + parseInt(playerScore * 100)