Guten Tag,
wollte die K/D berechen und ausgeben doch es passiert nichts. Also er berechnet es falsch.
COMMAND:stats(playerid,params[])
{
new str[500];
new Float:KD = User[playerid][Kills] / User[playerid][Tode];
format(str,500,"{FF9600}Allgemeine Information:\n\nName: %s\nLevel: %d\nGeld: %d\nCoins: %d\nStatus: %s\nSkin: %d\nKills: %d\nTode: %d\nK/D: %.2f",PlayerName(playerid),User[playerid][Level],User[playerid][Geld],User[playerid][Coins],Adminrang[User[playerid][Admin]],User[playerid][Skin],User[playerid][Kills],User[playerid][Tode],KD);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"LucareLLi DM || Statistik",str,"OK","");
return 1;
}