Heyho könnte mir mal jemand helfen?
Ich arbeite zurzeit an meinem Geldsystem, jedoch zeigt er mir in den /stats z.B. anstatt 77,03$ nur 77,3$!
new cashtext[128];
if(GetPVarInt(playerid,"Cents") == 0)
{
format(cashtext,128,"%d,0%d",GetPVarInt(playerid,"Euros"));
}
else if(GetPVarInt(playerid,"Cents") > 10)
{
format(cashtext,128,"%d,%d",GetPVarInt(playerid,"Euros"),GetPVarInt(playerid,"Cents"));
}
else if(GetPVarInt(playerid,"Cents") > 0 && GetPVarInt(playerid,"Cents") < 10)
{
format(cashtext,64,"%d.0%d",GetPVarInt(playerid,"Euros"),GetPVarInt(playerid,"Cents"));
}
Danke im Vorraus!