Hallo,
Ich habe schon wieder ein Problem mit mein Stats
ocmd:stats(playerid,params[])
{
new string[400];
new FrakName[40];
new AdminName[40];
new JobName[50];
if(GetPVarInt(playerid,"Fraktion") == 1) { FrakName = fraktname1; } [size=10]///// DAS GEHT[/size]
else if(GetPVarInt(playerid,"Fraktion") == 2) { FrakName = fraktname2; } [size=10]///// DAS GEHT[/size]
else if(GetPVarInt(playerid,"Fraktion") == 3) { FrakName = fraktname3; } [size=10]///// DAS GEHT[/size]
else if(GetPVarInt(playerid,"Fraktion") == 4) { FrakName = fraktname4; } [size=10]///// DAS GEHT[/size]
else if(GetPVarInt(playerid,"Fraktion") == 5) { FrakName = fraktname5; } [size=10]///// DAS GEHT[/size]
if(GetPVarInt(playerid,"Adminlevel") == 0) { AdminName = "Kein Admin"; } ///// DAS GEHT
else if(GetPVarInt(playerid,"Adminlevel") == 1) { AdminName = "Probe Supporter"; } [size=10]///// DAS GEHT[/size]
else if(GetPVarInt(playerid,"Adminlevel") == 2) { AdminName = "Supporter"; } [size=10]///// DAS GEHT[/size]
else if(GetPVarInt(playerid,"Adminlevel") == 3) { AdminName = "Admin"; } [size=10]///// DAS GEHT[/size]
else if(GetPVarInt(playerid,"Adminlevel") == 4) { AdminName = "Stellv Projektleiter"; } [size=10]///// DAS GEHT[/size]
else if(GetPVarInt(playerid,"Adminlevel") == 5) { AdminName = "Projektleiter"; } [size=10]///// DAS GEHT[/size]
if(GetPVarInt(playerid,"gJob") == 1) { JobName = "Mechanicker"; } [size=10]///// DAS GEHT NICHT[/size]
else if(GetPVarInt(playerid,"gJob") == 2) { JobName = "Pilot"; } [size=10]///// DAS GEHT NICHT[/size]
else if(GetPVarInt(playerid,"gJob") == 3) { JobName = "Busfahrer"; } [size=10]///// DAS GEHT NICHT[/size]
else if(GetPVarInt(playerid,"gJob") == 4) { JobName = "Straßenreiniger"; } [size=10]///// DAS GEHT NICHT[/size]
else if(GetPVarInt(playerid,"gJob") == 5) { JobName = "Waffendealer"; } [size=10]///// DAS GEHT NICHT[/size]
else if(GetPVarInt(playerid,"gJob") == 6) { JobName = "Drogendealer"; } [size=10]///// DAS GEHT NICHT[/size]
else if(GetPVarInt(playerid,"gJob") == 7) { JobName = "Taxifahrer"; } [size=10]///// DAS GEHT NICHT[/size]
else if(GetPVarInt(playerid,"gJob") == 8) { JobName = "Fischer"; } [size=10]///// DAS GEHT NICHT[/size]
format(string,sizeof(string),"{FFFFFF}Statistiken von {FF6E00}%s{FFFFFF}\n\n{FF6E00}Name {FFFFFF}[%s] \n{FF6E00}Kills {FFFFFF}[%d] \n{FF6E00}Adminlevel {FFFFFF}[%s] \n{FF6E00}Geld {FFFFFF}[%d]{FF6E00}\nJob {FFFFFF}[%s]\n{FF6E00}Fraktion{FFFFFF} [%s]",SpielerName(playerid),SpielerName(playerid),GetPlayerScore(playerid),AdminName,GetPlayerMoney(playerid),GetPVarInt(playerid,"Job"),FrakName,JobName);
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Informationen", string, "Schließen", "");
return 1;
}