Hay Leute,
Ich wollte mal Fragen ob jemand weiß wieso ich in meinem Stats Befehel in der Fraktion 83 bin. Obwohl ich nur 3 habe. Hier mal mein Stats befehl.
ocmd:stats(playerid,params[])
{
new string[128];
new fraktname[256],adminname[128];
new Leader[256],FRank[128];
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktname="Keine";}
case 1:{fraktname=Fraktname1;}
case 2:{fraktname=Fraktname2;}
case 3:{fraktname=Fraktname3;}
}
switch(GetPVarInt(playerid,"FLeader"))
{
case 0:{Leader="Keine";}
case 1:{Leader=Fraktname1;}
case 2:{Leader=Fraktname2;}
case 3:{Leader=Fraktname3;}
}
switch(GetPVarInt(playerid,"Adminlevel"))
{
case 0:{adminname="Nein";}
case 1:{adminname="ProbeSupporter";}
case 2:{adminname="Supporter";}
case 3:{adminname="Moderator";}
case 4:{adminname="Super Moderator";}
case 5:{adminname="High Admin";}
case 6:{adminname="Full Admin";}
}
if(isPlayerInFrakt(playerid,1))
{
switch(GetPVarInt(playerid,"FRank"))
{
case 1:{FRank="Officer";}
case 2:{FRank="Sergeant";}
case 3:{FRank="Lieutenant";}
case 4:{FRank="Captain";}
case 5:{FRank="Inspector";}
case 6:{FRank="Chief";}
}
}
format(string,sizeof(string),"Name: %s\nLevel: %i\nAdminlevel: %s\nFraktion: %i\nLeader: %s\nRank: %s",SpielerName(playerid),GetPlayerScore(playerid),adminname,fraktname,Leader,FRank);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statistik",string,"Ok","");
return 1;
}