void DisplayMoney()
{
for(int i=1;i<100;i++)SetLampLit("MoneyDisplay_"+i, false, false);
SetLampLit("MoneyDisplay_0", false, false);
if(GetGlobalVarInt("MoneyVar") > 9)
{
if(GetGlobalVarInt("MoneyVar") > 19)
{
if(GetGlobalVarInt("MoneyVar") > 29)
{
if(GetGlobalVarInt("MoneyVar") > 39)
{
if(GetGlobalVarInt("MoneyVar") > 49)
{
if(GetGlobalVarInt("MoneyVar") > 59)
{
if(GetGlobalVarInt("MoneyVar") > 69)
{
if(GetGlobalVarInt("MoneyVar") > 79)
{
if(GetGlobalVarInt("MoneyVar") > 89)
{
SetLampLit("MoneyDisplay_90", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-90), true, false);
}
else
{
SetLampLit("MoneyDisplay_80", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-80), true, false);
}
}
else
{
SetLampLit("MoneyDisplay_70", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-70), true, false);
}
}
else
{
SetLampLit("MoneyDisplay_60", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-60), true, false);
}
}
else
{
SetLampLit("MoneyDisplay_50", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-50), true, false);
}
}
else
{
SetLampLit("MoneyDisplay_40", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-40), true, false);
}
}
else
{
SetLampLit("MoneyDisplay_30", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-30), true, false);
}
}
else
{
SetLampLit("MoneyDisplay_20", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-20), true, false);
}
}
else
{
SetLampLit("MoneyDisplay_10", true, false);
SetLampLit("MoneyDisplay_"+(GetGlobalVarInt("MoneyVar")-10), true, false);
}
}
else
{
SetLampLit("MoneyDisplay_"+GetGlobalVarInt("MoneyVar"), true, false);
}
}