Bei mir wird Ingame bei /stats Adminlevel 80 Angezeigt, wo liegt der Fehler?
if(strcmp(cmdtext,"/stats",true)==0)
{
new string[128];
new fraktname[64];
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktname="Zivilist";}
case 1:{fraktname="LSPD";}
case 2:{fraktname="SFPD";}
case 3:{fraktname="Bundeswehr";}
}
new Adminlevelname[64];
switch(GetPVarInt(playerid,"Adminlevel"))
{
case 0:{Adminlevelname="User";}
case 1:{Adminlevelname="Ingame Supporter";}
case 2:{Adminlevelname="Ingame Moderator";}
case 3:{Adminlevelname="Support Admin - Level 1";}
case 4:{Adminlevelname="Support Admin - Level 2";}
case 5:{Adminlevelname="Support Admin - Level 3";}
case 1337:{Adminlevelname="1337 Admin - Support Admin";}
case 1338:{Adminlevelname="Stellv. Projektleiter";}
case 1339:{Adminlevelname="Projektleiter";}
}
format(string,sizeof(string),"Name: %s]\nLevel: %i\nAdminlevel: %i\nFraktion: %s",PlayerName(playerid),GetPlayerScore(playerid),Adminlevelname,fraktname);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Dein Status",string,"OK!","Schließen!");
return 1;
}