Added function to form integer to money string
This commit is contained in:
@@ -8,11 +8,11 @@ namespace reallife_gamemode.Server.Extensions
|
|||||||
{
|
{
|
||||||
public static string ToMoneyString(this int? money)
|
public static string ToMoneyString(this int? money)
|
||||||
{
|
{
|
||||||
return string.Format(Main.SERVER_CULTURE, "{0:C0}", money ?? 0);
|
return ToMoneyString(money ?? 0);
|
||||||
}
|
}
|
||||||
public static string ToMoneyString(this int money)
|
public static string ToMoneyString(this int money)
|
||||||
{
|
{
|
||||||
return string.Format(Main.SERVER_CULTURE, "{0:C0}", money);
|
return string.Format(Main.SERVER_CULTURE, "{0:C0}", money).Replace('€', '$');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user