Guten Abend,
könnte mir wer helfen, und mir sagen wieso mein Rang nicht ausgegeben wird ?
stock ShowStats(playerid)
{
new string[258], frakname[258], rangname[258];
switch(GetPVarInt(playerid, "Fraktion"))
{
case 0:{ frakname = "Zivilist"; }
case 1:{ frakname = "LS Police"; }
}
if(GetPVarInt(playerid, "Fraktion") == 0)
{
if(GetPVarInt(playerid, "Rang") == 1) { rangname = " - "; }
}
if(GetPVarInt(playerid, "Fraktion") == 1)
{
if(GetPVarInt(playerid, "Rang") == 1) { rangname = "LS Anwärter"; }
if(GetPVarInt(playerid, "Rang") == 2) { rangname = "LS Hauptwachtmeister"; }
if(GetPVarInt(playerid, "Rang") == 3) { rangname = "LS Polizeimeister"; }
}
format(string, sizeof(string), "Name: %s\n\nLevel: %i Respektpunkte: %i/15\nFraktion: %s Rang: %s\n", SpielerName(playerid), GetPlayerScore(playerid), GetPVarInt(playerid, "Respektpunkte"), frakname, rangname);
ShowPlayerDialog(playerid, DIALOG_STATISTIK, DIALOG_STYLE_MSGBOX, "Deine Statistiken", string, "Ok", "");
return 1;
}