Hallo,
ich hab da ein Problem undzwar wenn ich /licenses mache kommt nur ein leerer Dialog wieso?
if(strcmp(cmd,"/licenses",true)==0)
{
if(IsPlayerConnected(playerid))
{
new text1[20];
new text3[20];
new text4[20];
new text5[20];
new text6[20];
new text7[20];
new text8[20];
new text9[20];
new text10[20];
new text11[20];
new text12[20];
new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],rest[1500];
if(PlayerInfo[playerid][pCarLic]) { text1 = "bestanden"; } else { text1 = "nicht bestanden"; }
if(PlayerInfo[playerid][pFlyLic]) { text3 = "bestanden"; } else { text3 = "nicht bestanden"; }
if(PlayerInfo[playerid][pBoatLic]) { text4 = "bestanden"; } else { text4 = "nicht bestanden"; }
if(PlayerInfo[playerid][pFishLic]) { text5 = "bestanden"; } else { text5 = "nicht bestanden"; }
if(PlayerInfo[playerid][pGunLic]) { text6 = "bestanden"; } else { text6 = "nicht bestanden"; }
if(PlayerInfo[playerid][pMotoLic]) { text7 = "bestanden"; } else { text7 = "nicht bestanden"; }
if(PlayerInfo[playerid][pLKWLic]) { text8 = "bestanden"; } else { text8 = "nicht bestanden"; }
if(PlayerInfo[playerid][pRollerLic]) { text9 = "bestanden"; } else { text9 = "nicht bestanden"; }
if(PlayerInfo[playerid][pLVPASS] > 0) { format(text10,sizeof(text10),"Note %d",PlayerInfo[playerid][pLVPASS]); } else { text10 = "nicht gemacht"; }
if(PlayerInfo[playerid][pSPECIAL] > 0) { format(text11,sizeof(text11),"Note %d",PlayerInfo[playerid][pSPECIAL]); } else { text11 = "nicht gemacht"; }
if(PlayerInfo[playerid][pLUFTWAFFE] > 0) { format(text12,sizeof(text12),"Note %d",PlayerInfo[playerid][pLUFTWAFFE]); } else { text12 = "nicht gemacht"; }
format(string, sizeof(string1), "** Führerschein: %s.", text1);
SendClientMessage(playerid, 0xFAFAFAFF, string1);
format(string, sizeof(string2), "** Fluglizenz: %s.", text3);
SendClientMessage(playerid, 0xFAFAFAFF, string2);
format(string, sizeof(string3), "** Segelschein: %s.", text4);
SendClientMessage(playerid, 0xFAFAFAFF, string3);
format(string, sizeof(string4), "** Angelschein: %s.", text5);
SendClientMessage(playerid, 0xFAFAFAFF, string4);
format(string, sizeof(string5), "** Waffenschein: %s.", text6);
SendClientMessage(playerid, 0xFAFAFAFF, string5);
format(string, sizeof(string6), "** Motorradschein: %s.", text7);
SendClientMessage(playerid, 0xFAFAFAFF, string6);
format(string, sizeof(string7), "** LKW Schein: %s.", text8);
SendClientMessage(playerid, 0xFAFAFAFF, string7);
format(string, sizeof(string8), "** Rollerschein: %s.", text9);
SendClientMessage(playerid, 0xFAFAFAFF, string8);
format(string, sizeof(string9), "** GWD Normal: %s.", text10);
SendClientMessage(playerid, 0xFAFAFAFF, string9);
format(string, sizeof(string10), "** GWD Special Forces: %s.", text11);
SendClientMessage(playerid, 0xFAFAFAFF, string10);
format(string, sizeof(string11), "** GWD Luftwaffe: %s.", text12);
SendClientMessage(playerid, 0xFAFAFAFF, string11);
format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11);
ShowPlayerDialog(playerid,4147,DIALOG_STYLE_MSGBOX,"Licenses",rest,"Beenden","");
}
return 1;
}
Hoffe es kann einer helfen
LG
Moritz