Ich habe dir den Code etwas umgebaut, so ist er besser:
function:ShowStatistics(playerid, playerid2)
{
if(playerid2 == INVALID_PLAYER_ID) return 1; //Do not proceed.
new string[1024], string2[64];
format(string, sizeof(string), ""grey"Spieler ID: %d\n", playerid2);
format(string, sizeof(string), "%sMitglied seit: %s\n", string, User[playerid2][accountDate]);
format(string, sizeof(string), "%sOnline Zeit: %02d:%02d:%02d\n", string, User[playerid2][accountGame][2], User[playerid2][accountGame][1], User[playerid2][accountGame][0]);
format(string, sizeof(string), "%sAdmin Level: %d\n", string, User[playerid2][accountAdmin]);
format(string, sizeof(string), "%sLevel: %d\n", string, User[playerid2][accountScore]);
format(string, sizeof(string), "%sGeld: $%d\n", string, User[playerid2][accountCash]);
format(string, sizeof(string), "%sKills: %d\n", string, User[playerid2][accountKills]);
format(string, sizeof(string), "%sMorde: %d\n", string, User[playerid2][accountDeaths]);
new deaths = User[playerid2][accountDeaths];
if(deaths == 0) deaths = 1; //Man kann nicht durch 0 teilen.
new Float:ratio = (float(User[playerid2][accountKills])/float(deaths));
format(string, sizeof(string), "%sRatio (K/D): %.3f\n", string, ratio);
format(string2, sizeof(string2), "{FF0000}%s's Statistiken", pName(playerid2));
SD(playerid, DIALOG_BEGIN, DM, string2, string, "Verlassen", "");
return 1;
}
In Zeile 6: playerid2 ersetzen, falls da eine andere ID hin soll.
In Zeile 19: FF0000 ist die Farbe. Siehe http://www.colorpicker.com.