Hallo ich habe an meinem Stats Befehl gebastelt , ich gehe Ingame und stelle Fest das es nicht funktioniert. Es kommt einfach nur Server Unknown Command
if (strcmp("/stats", cmdtext, true, 10) == 0)
{
new fraktname[64];
new string1[128],string2[128],string3[128],string4[128],string5[128],string6[128],string7[1],string8[128];
new string9[128],string10[128],string11[128],string12[1],string13[128],string14[128],string15[128],string16[128],string17[1];
new string18[128],string19[128],string20[128],string21[128],rest[1500];
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktname="Bürger";}
case 1:{fraktname=fraktname1;}
case 2:{fraktname=fraktname2;}
case 3:{fraktname=fraktname3;}
case 4:{fraktname=fraktname4;}
case 5:{fraktname=fraktname5;}
case 6:{fraktname=fraktname6;}
case 7:{fraktname=fraktname7;}
}
new Laptopname[14];
switch(GetPVarInt(playerid,"Laptop"))
{
case 0:{Laptopname="Nein";}
case 1:{Laptopname="Ja";}
}
new handyname[14];
switch(GetPVarInt(playerid,"Telefon"))
{
case 0:{handyname="Nein";}
case 1:{handyname="Ja";}
}
format(string1, sizeof string1, "{7f7f00}Persönliche Daten");
format(string2, sizeof string2, "{7f7f00}------------------");
format(string3, sizeof string3, "Name:%s Telefonnummer:%d",SpielerName(playerid),GetPVarInt(playerid,"Telefonnummer"));
format(string4, sizeof string4, "Alter:%d ",GetPVarInt(playerid,"Alter"));
format(string5, sizeof string5, "Level:%d ",GetPlayerScore(playerid));
format(string6, sizeof string6, "Respektpunkte:%d/%d Kosten fürs nächsten Level:%d",GetPVarInt(playerid,"Respektpunkte"),GetPVarInt(playerid,"Respekt"),GetPVarInt(playerid,"LevelMoney"));
format(string7, sizeof string7, " ");
format(string8, sizeof string8, "{7f7f00}Vermögen");
format(string9, sizeof string9, "{7f7f00}--------");
format(string10, sizeof string10, "Geldbörse:%d",GetPlayerMoney(playerid));
format(string11, sizeof string11, "Bank:%d",GetPVarInt(playerid,"Bank"));
format(string12, sizeof string12, "");
format(string13, sizeof string13, "{7f7f00}Fraktion/{ffff00}Beruf");
format(string14, sizeof string14, "{7f7f00}----------------------");
format(string15, sizeof string15, "Fraktion:%s Rang:%s",fraktname,GetPVarInt(playerid,"FRank"));
format(string16, sizeof string16, "Beruf:%s ",GetPVarInt(playerid,"Job"));
format(string17, sizeof string17, "");
format(string18, sizeof string18, "{7f7f00}Informationen");
format(string19, sizeof string19, "{7f7f00}-------------");
format(string20, sizeof string20, "Tode/Kills:%d/%d ",GetPVarInt(playerid,"Tode"),GetPVarInt(playerid,"Kills"));
format(string21, sizeof string21, "Handy:%s Laptop:%s",handyname,Laptopname);
format(rest, sizeof rest, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string15,string16,string17,string18,string19,string20,string21);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Beenden","");
return 1;
}