ocmd:stats(playerid)
{
new string[50],string2[128],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
new Float:kdrate = Spieler[playerid][Kills]/Spieler[playerid][Deaths];
format(string,sizeof(string),"Stats von %s",pname);
new player = GetPlayerScore(playerid);
format(string2,sizeof(string2),"Name: %s\nLevel: %d\nGeld: %d\nSkin ID: %d\nKills: %d\nDeaths: %d\nK/D Rate: %.2f",pname,GetPlayerScore(playerid),GetPlayerMoney(playerid),player,Spieler[playerid][Kills],Spieler[playerid][Deaths],kdrate);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,string,string2,"Ok","");
return 1;
}
Wenn sich der Dialog öffnet & ich auf OK Drücke respawne ich, worran liegt das?
MFG