ammo display javascript

i need a ammo display script, so when i shoot the gun, the ammo in the bottom left shows how much bullets i have left.

example:

23/30

You will need two variables, one to store your max ammo and one to store the current ammo.

In order to display those you will need to use some form of GUI, e.g:

var currentAmmo: int = 30;
var totalAmmo: int = 30;

function OnGUI () {
	GUI.Label (Rect (25, 25, 100, 30), currentAmmo+"/"+totalAmmo);
}

I agre with reptilebeats, tutorials would be a good place to start. There are plenty that can be found with quick Google.