ich habe eben ein /stats gescriptet aber wenn ich es einegbe kommt alles außer dem Fraktions Rang
heri der lange Script
if(strcmp(cmdtext,"/stats",true) == 0)
{
new String1[512], String2[128], tring[40];
new pname[MAX_PLAYER_NAME];
new score = GetPlayerScore(playerid);
new geld = GetPlayerMoney(playerid);
GetPlayerName(playerid, pname, sizeof(pname));
//Fraktions Abfrage
if(GetPVarInt(playerid, "Fraktion") == 0)
{
format(String2, sizeof(String2), "Keine Fraktion");
}
else if(GetPVarInt(playerid, "Fraktion") == 1)
{
format(String2, sizeof(String2), "Medic LS");
}
else if(GetPVarInt(playerid, "Fraktion") == 2)
{
format(String2, sizeof(String2), "Taxi-Crew");
}
else if(GetPVarInt(playerid, "Fraktion") == 3)
{
format(String2, sizeof(String2), "LSPD Polizei");
}
//Rang
if(GetPVarInt(playerid, "Fraktion") == 1)
{
if(GetPVarInt(playerid, "Frak-Rang") == 1)
{
format(tring,sizeof(tring),"Praktikant");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 2)
{
format(tring,sizeof(tring),"LSPD-Streifen-Polizist");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 3)
{
format(tring,sizeof(tring),"Wachtmeister");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 4)
{
format(tring,sizeof(tring),"Kommissar");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 4)
{
format(tring,sizeof(tring),"LSPD-Leader");
}
}
//---------------LSPD
//---------------Taxi
else if(GetPVarInt(playerid, "Fraktion") == 2)
{
if(GetPVarInt(playerid, "Frak-Rang") == 1)
{
format(tring,sizeof(tring),"Praktikant");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 2)
{
format(tring,sizeof(tring),"Fahrer");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 3)
{
format(tring,sizeof(tring),"Bullilenker");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 4)
{
format(tring,sizeof(tring),"Heli-Taxi");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 4)
{
format(tring,sizeof(tring),"Taxi-Leader");
}
}
//---------------Taxi
//---------------Medic
else if(GetPVarInt(playerid, "Fraktion") == 2)
{
if(GetPVarInt(playerid, "Frak-Rang") == 1)
{
format(tring,sizeof(tring),"Praktikant");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 2)
{
format(tring,sizeof(tring),"Arzt-Helfer");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 3)
{
format(tring,sizeof(tring),"Fach-Arzt");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 4)
{
format(tring,sizeof(tring),"Chef-Arzt");
}
else if(GetPVarInt(playerid, "Frak-Rang") == 4)
{
format(tring,sizeof(tring),"Medic-Leader");
}
}
format(String1, sizeof(String1), "/stats von %s \n Level %d \n Geld %d \n Fraktion %s \n Fraktions Rang %s ", pname, score, geld, String2, tring);
ShowPlayerDialog(playerid, DIALOG_ADMIN_5, DIALOG_STYLE_MSGBOX, "Deine Statisticken", String1, "OK", "OK");
return 1;
}
könnt ihr mir helfen da ich alle formate % aus probiert habe
MFG Piet