Hallo User ,
ich weiß nicht warum aber die Dialoge wollen einfach nicht so wie ich gerne Hätte
freue mich umhilfe und erklärungen.
ich weiß das siht viel aus aber ist nur der code mit den ganzen Fraks
Bild1:
Code1:
dcmd_licenses(playerid,params[])
{
#pragma unused params
new Zeile0[252],Zeile1[252],Zeile2[252],Zeile3[252],Zeile4[252],DialogText[252];
if(PlayerInfo[playerid][CarL] == 0)
{
format(Scheine,sizeof(Scheine),"Nein");
}
else if(PlayerInfo[playerid][CarL] == 1)
{
format(Scheine,sizeof(Scheine),"Ja");
}
if(PlayerInfo[playerid][BikeL] == 0)
{
format(Scheine,sizeof(Scheine),"Nein");
}
else if(PlayerInfo[playerid][BikeL] == 1)
{
format(Scheine,sizeof(Scheine),"Ja");
}
if(PlayerInfo[playerid][FlyL] == 0)
{
format(Scheine,sizeof(Scheine),"Nein");
}
else if(PlayerInfo[playerid][FlyL] == 1)
{
format(Scheine,sizeof(Scheine),"Ja");
}
//
format(Zeile0,sizeof(Zeile0),"|--------Scheine--------|");
format(Zeile1,sizeof(Zeile1),"-Auton: %d",CarL);
format(Zeile2 ,sizeof(Zeile2),"-Motorad: %d",BikeL);
format(Zeile3 ,sizeof(Zeile3),"-Flugzeug: %d", FlyL);
format(Zeile4 ,sizeof(Zeile4 ),"-WaffenSchein: %d", WaffenL);
format(DialogText,sizeof(DialogText),"%s\n%s\n%s\n%s\n%s",Zeile0,Zeile1,Zeile2,Zeile3,Zeile4);
ShowPlayerDialog(playerid,DIALOG_Scheine,DIALOG_STYLE_MSGBOX,"Deine Scheine",DialogText,"Schließen","");
return 1;
}
Bild2:
Code2:
dcmd_stats(playerid,params[])
{
#pragma unused params
new Zeile0[252],Zeile1[252],Zeile2[252],Zeile3[252],Zeile4[252],Zeile5[252],Zeile6[252],Zeile7[252],Zeile8[252],Zeile9[252],Zeile10[252],Zeile11[252],Zeile12[252],Zeile13[252],DialogText[252];
if(PlayerInfo[playerid][Beruf] == 0)
{
format(FrakName,sizeof(FrakName),"Zivilist");
}
else if(PlayerInfo[playerid][Beruf] == 1)
{
format(FrakName,sizeof(FrakName),"LSPD");
}
else if(PlayerInfo[playerid][Beruf] == 2)
{
format(FrakName,sizeof(FrakName),"FBI");
}
else if(PlayerInfo[playerid][Beruf] == 3)
{
format(FrakName,sizeof(FrakName),"Army");
}
else if(PlayerInfo[playerid][Beruf] == 4)
{
format(FrakName,sizeof(FrakName),"Medic");
}
else if(PlayerInfo[playerid][Beruf] == 5)
{
format(FrakName,sizeof(FrakName),"Fahrschule");
}
else if(PlayerInfo[playerid][Beruf] == 6)
{
format(FrakName,sizeof(FrakName),"TAXI");
}
else if(PlayerInfo[playerid][Beruf] == 7)
{
format(FrakName,sizeof(FrakName),"Präsident");
}
else if(PlayerInfo[playerid][Beruf] == 8)
{
format(FrakName,sizeof(FrakName),"SA-News");
}
else if(PlayerInfo[playerid][Beruf] == 9)
{
format(FrakName,sizeof(FrakName),"Groove Street");
}
else if(PlayerInfo[playerid][Beruf] == 10)
{
format(FrakName,sizeof(FrakName),"LCN");
}
else if(PlayerInfo[playerid][Beruf] == 11)
{
format(FrakName,sizeof(FrakName),"Ballas");
}
else if(PlayerInfo[playerid][Beruf] == 12)
{
format(FrakName,sizeof(FrakName),"Biker");
}
else if(PlayerInfo[playerid][Beruf] == 13)
{
format(FrakName,sizeof(FrakName),"Los Vagos");
}
else if(PlayerInfo[playerid][Beruf] == 14)
{
format(FrakName,sizeof(FrakName),"Yakuzza");
}
else if(PlayerInfo[playerid][Beruf] == 14)
{
format(FrakName,sizeof(FrakName),"Yakuzza");
}
else if(PlayerInfo[playerid][Beruf] == 15)
{
format(FrakName,sizeof(FrakName),"Rifa");
}
else if(PlayerInfo[playerid][Beruf] == 16)
{
format(FrakName,sizeof(FrakName),"Terrorist");
}
//
format(Zeile0,sizeof(Zeile0),"|--------Daten--------|");
format(Zeile1,sizeof(Zeile1),"-Level: %d",Level);
format(Zeile2 ,sizeof(Zeile2),"-Respekt: %d",ErfahrungsP);
format(Zeile3 ,sizeof(Zeile3),"-Geld: %d", Geld);
format(Zeile4 ,sizeof(Zeile4 ),"-Kontostand: %d", Bank);
format(Zeile5 ,sizeof(Zeile5 ),"-Admin Rang: %d", Admin);
format(Zeile6 ,sizeof(Zeile6 ),"\n|--------Beruf--------|");
format(Zeile7 ,sizeof(Zeile7 ),"-Fraktion: %s", Beruf);
format(Zeile8 ,sizeof(Zeile8 ),"-Rang: %d", Rank);
format(Zeile9 ,sizeof(Zeile9 ),"-Nebenjob: %s", Nebenjob);
format(Zeile10 ,sizeof(Zeile10 ),"\n|---------Info--------|");
format(Zeile11,sizeof(Zeile11 ),"-Tode: %d", Tode);
format(Zeile12 ,sizeof(Zeile12 ),"-Verbrechen: %d", Verbrechen);
format(Zeile13 ,sizeof(Zeile13 ),"-Wandets: %d", Wanted);
format(DialogText,sizeof(DialogText),"%s\n%d\n%d\n%d\n%d\n%d\n%s\n%s\n%s\n%s\n%s\n%d\n%d\n%d",Zeile0,Zeile1,Zeile2,Zeile3,Zeile4,Zeile5,Zeile6,Zeile7,Zeile8,Zeile9,Zeile10,Zeile11,Zeile12,Zeile13);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Deine Statistiken",DialogText,"Schließen","");
return 1;
}