Problem | Befehl: /ah im Dialog

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Huhu ihr lieben,
    ich habe nun das Problem, nachdem ich versucht habe, die Dinge, die im Befehl (/ah) standen in ein Dialog umzuschreiben. Dies funktionierte auch (keine Errors etc.), nur InGame bekomme ich immer 'SERVER: Unknown Command'.
    Ich habe hier mal die ganzen Dialoge:

    if(strcmp(cmd, "/ahilfe", true) == 0 || strcmp(cmd, "/ah", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] == 1)
    {
    new AlleZeilen[720],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{FFFF00}Supporter{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze");
    format(Zeile4, sizeof(Zeile4), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile5, sizeof(Zeile5), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile5);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}* {FFFF00}Support{FFFFFF}: /mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}* {FFFF00}Support{FFFFFF}: /countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 2)
    {
    new AlleZeilen[864],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144],Zeile6[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{00B200}Moderator{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze");
    format(Zeile4, sizeof(Zeile4), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)");
    format(Zeile5, sizeof(Zeile5), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile6, sizeof(Zeile6), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile5,Zeile6);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {00B200}Moderation{FFFFFF}: /noooc /setteam (CnR) /bigears /cnn /recon /cam");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {00B200}Moderation{FFFFFF}: /startlotto /ban /cnn /accban (sehe /ban)");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 3)
    {
    new AlleZeilen[1008],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144],Zeile6[144],Zeile7[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{009999}High Moderator{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze");
    format(Zeile4, sizeof(Zeile4), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)");
    format(Zeile7, sizeof(Zeile7), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)");
    format(Zeile5, sizeof(Zeile5), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile6, sizeof(Zeile6), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile7,Zeile5,Zeile6);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {009999}High Moderation{FFFFFF}: /gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel)");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {009999}High Moderation{FFFFFF}: /gotobays (Bayside)");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 4)
    {
    new AlleZeilen[1008],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144],Zeile6[144],Zeile7[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{0099FF}Trial Admin{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar");
    format(Zeile4, sizeof(Zeile4), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)");
    format(Zeile7, sizeof(Zeile7), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)");
    format(Zeile5, sizeof(Zeile5), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile6, sizeof(Zeile6), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile7,Zeile5,Zeile6);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {0099FF}Trial Administration{FFFFFF}: /mark /gotomark /gotocar /getcar");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 1336)
    {
    new AlleZeilen[1296],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144],Zeile6[144],Zeile7[144],Zeile8[144],Zeile9[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{0000FF}Admin{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar");
    format(Zeile4, sizeof(Zeile4), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)");
    format(Zeile7, sizeof(Zeile7), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)");
    format(Zeile8, sizeof(Zeile8), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen");
    format(Zeile9, sizeof(Zeile9), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall");
    format(Zeile5, sizeof(Zeile5), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile6, sizeof(Zeile6), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile7,Zeile8,Zeile9,Zeile5,Zeile6);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {0000FF}Administration{FFFFFF}: /sban /sethp /setarmor /fixveh /alleentwaffnen");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {0000FF}Administration{FFFFFF}: /healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 1337)
    {
    new AlleZeilen[1584],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144],Zeile6[144],Zeile7[144],Zeile8[144],Zeile9[144],Zeile10[144],Zeile11[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{B40404}Head Admin{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar");
    format(Zeile4, sizeof(Zeile4), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)");
    format(Zeile7, sizeof(Zeile7), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)");
    format(Zeile8, sizeof(Zeile8), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen /givegun /forceskin /setstat /setfamily");
    format(Zeile9, sizeof(Zeile9), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall");
    format(Zeile10, sizeof(Zeile10), "\n{FFFFFF}/asellhouse /asellbiz /sellsbiz /setchamp /sban /mole /edit /givemoney /setmoney");
    format(Zeile11, sizeof(Zeile11), "\n{FFFFFF}/veh /setleader /destroycars /sethp /setarmor /house /housetp");
    format(Zeile5, sizeof(Zeile5), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile6, sizeof(Zeile6), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s%s%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile7,Zeile8,Zeile9,Zeile10,Zeile11,Zeile5,Zeile6);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {B40404}Head Administration{FFFFFF}: /mole /edit /givemoney /setmoney");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {B40404}Head Administration{FFFFFF}: /asellhouse /asellbiz /sellsbiz /setchamp /sban");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {B40404}Head Administration{FFFFFF}: /givegun /forceskin /setstat /setfamily");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {B40404}Head Administration{FFFFFF}: /veh /setleader /destroycars /sethp /setarmor /house /housetp");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 1338)
    {
    new AlleZeilen[1584],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144],Zeile6[144],Zeile7[144],Zeile8[144],Zeile9[144],Zeile10[144],Zeile11[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{00FFFF}Community- & Projektmanager{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar");
    format(Zeile4, sizeof(Zeile4), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)");
    format(Zeile7, sizeof(Zeile7), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)");
    format(Zeile8, sizeof(Zeile8), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen /givegun /forceskin /setstat /setfamily");
    format(Zeile9, sizeof(Zeile9), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall");
    format(Zeile10, sizeof(Zeile10), "\n{FFFFFF}/asellhouse /asellbiz /sellsbiz /setchamp /sban /mole /edit /givemoney /setmoney");
    format(Zeile11, sizeof(Zeile11), "\n{FFFFFF}/veh /setleader /destroycars /sethp /setarmor /house /housetp /veh /delveh /setfkasse");
    format(Zeile5, sizeof(Zeile5), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile6, sizeof(Zeile6), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s%s%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile7,Zeile8,Zeile9,Zeile10,Zeile11,Zeile5,Zeile6);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {00FFFF}Community- & Projektmanagement{FFFFFF}: /veh /delveh /setfkasse");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 1339)
    {
    new AlleZeilen[1584],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144],Zeile6[144],Zeile7[144],Zeile8[144],Zeile9[144],Zeile10[144],Zeile11[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{F78181}stellvertretender Projektleiter{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar");
    format(Zeile4, sizeof(Zeile4), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)");
    format(Zeile7, sizeof(Zeile7), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)");
    format(Zeile8, sizeof(Zeile8), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen /givegun /forceskin /setstat /setfamily");
    format(Zeile9, sizeof(Zeile9), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall /restartserver (Server Neustart)");
    format(Zeile10, sizeof(Zeile10), "\n{FFFFFF}/asellhouse /asellbiz /sellsbiz /setchamp /sban /mole /edit /givemoney /setmoney /umbenennen");
    format(Zeile11, sizeof(Zeile11), "\n{FFFFFF}/veh /setleader /destroycars /sethp /setarmor /house /housetp /veh /delveh /setfkasse");
    format(Zeile5, sizeof(Zeile5), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile6, sizeof(Zeile6), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s%s%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile7,Zeile8,Zeile9,Zeile10,Zeile11,Zeile5,Zeile6);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {F78181}stellvertretende Projektleitung{FFFFFF}: /restartserver (Server Neustart) /umbenennen");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 2000)
    {
    new AlleZeilen[2016],Zeile1[144],Zeile2[144],Zeile3[144],Zeile4[144],Zeile5[144],Zeile6[144],Zeile7[144],Zeile8[144],Zeile9[144],Zeile10[144],Zeile11[144];
    new Zeile12[144],Zeile13[144],Zeile14[144];
    format(Zeile1, sizeof(Zeile1), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{FF0000}Projektleiter{C9DCEF}':");
    format(Zeile2, sizeof(Zeile2), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    format(Zeile3, sizeof(Zeile3), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar");
    format(Zeile4, sizeof(Zeile4), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)");
    format(Zeile7, sizeof(Zeile7), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)");
    format(Zeile8, sizeof(Zeile8), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen /givegun /forceskin /setstat /setfamily");
    format(Zeile9, sizeof(Zeile9), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall /restartserver (Server Neustart)");
    format(Zeile10, sizeof(Zeile10), "\n{FFFFFF}/asellhouse /asellbiz /sellsbiz /setchamp /sban /mole /edit /givemoney /setmoney /umbenennen");
    format(Zeile11, sizeof(Zeile11), "\n{FFFFFF}/veh /setleader /destroycars /sethp /setarmor /house /housetp /veh /delveh /setfkasse");
    format(Zeile12, sizeof(Zeile12), "\n{FFFFFF}/setadmin /nold (Leader-Chat an/aus) /pdd /sprengen /aorten");
    format(Zeile13, sizeof(Zeile13), "\n{FFFFFF}/getip /clear /fh (fullheal) /fourdive /ajpon /ajpoff /zentrale");
    format(Zeile14, sizeof(Zeile14), "\n{FFFFFF}/adurchsuchen /alight /aschild /gotomyinsel");
    format(Zeile5, sizeof(Zeile5), "\n\n{00FF00}Support-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)");
    format(Zeile6, sizeof(Zeile6), "\n{00FF00}Support-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(AlleZeilen, sizeof(AlleZeilen), "%s%s%s%s%s%s%s%s%s%s%s%s%s%s",Zeile1,Zeile2,Zeile3,Zeile4,Zeile7,Zeile8,Zeile9,Zeile10,Zeile11,Zeile12,Zeile13,Zeile14,Zeile5,Zeile6);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",AlleZeilen,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {FF0000}Projektleitung{FFFFFF}: /setadmin /nold (Leader-Chat an/aus) /pdd /sprengen /aorten");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {FF0000}Projektleitung{FFFFFF}: /getip /clear /fh (fullheal) /fourdive /ajpon /ajpoff /zentrale");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {FF0000}Projektleitung{FFFFFF}: /adurchsuchen /alight /aschild /gotomyinsel");*/
    }
    }
    return 1;


    }


    Was habe ich falsch gemacht? :S:/
    schon mal Danke für eure Hilfe. ;)

  • Du nutzt viel zu viele Variablen dort.
    Entferne alle die Array-Deklarationen (AlleZeilen, Zeile1, ...) und schreibe vor der IsPlayerConnected Abfrage einmal ein new string[1500]; hin.
    Dann baue deine Zeilen so auf:

    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{FFFF00}Supporter{C9DCEF}':");
    format(string, sizeof(string), "%s\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "%s\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze", string);
    //...

  • Ich habs mal so gemacht wie du es gesagt hast, jedoch wird mir jetzt nur eine Zeile angezeigt, zudem auch Warnings:



    Es wird nur diese Zeile angezeigt:
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");


    Die kompletten Zeilen:

    if(strcmp(cmd, "/ahilfe", true) == 0 || strcmp(cmd, "/ah", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] == 1)
    {
    new string[720];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{FFFF00}Supporter{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze", string);
    format(string, sizeof(string), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}* {FFFF00}Support{FFFFFF}: /mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban");
    SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}* {FFFF00}Support{FFFFFF}: /countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 2)
    {
    new string[864];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{00B200}Moderator{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze", string);
    format(string, sizeof(string), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)", string);
    format(string, sizeof(string), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {00B200}Moderation{FFFFFF}: /noooc /setteam (CnR) /bigears /cnn /recon /cam");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {00B200}Moderation{FFFFFF}: /startlotto /ban /cnn /accban (sehe /ban)");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 3)
    {
    new string[1008];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{009999}High Moderator{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze", string);
    format(string, sizeof(string), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)", string);
    format(string, sizeof(string), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)", string);
    format(string, sizeof(string), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {009999}High Moderation{FFFFFF}: /gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel)");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {009999}High Moderation{FFFFFF}: /gotobays (Bayside)");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 4)
    {
    new string[1008];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{0099FF}Trial Admin{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar", string);
    format(string, sizeof(string), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)", string);
    format(string, sizeof(string), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)", string);
    format(string, sizeof(string), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {0099FF}Trial Administration{FFFFFF}: /mark /gotomark /gotocar /getcar");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 1336)
    {
    new string[1296];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{0000FF}Admin{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar", string);
    format(string, sizeof(string), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)", string);
    format(string, sizeof(string), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)", string);
    format(string, sizeof(string), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen", string);
    format(string, sizeof(string), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall", string);
    format(string, sizeof(string), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {0000FF}Administration{FFFFFF}: /sban /sethp /setarmor /fixveh /alleentwaffnen");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {0000FF}Administration{FFFFFF}: /healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 1337)
    {
    new string[1584];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{B40404}Head Admin{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar", string);
    format(string, sizeof(string), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)", string);
    format(string, sizeof(string), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)", string);
    format(string, sizeof(string), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen /givegun /forceskin /setstat /setfamily", string);
    format(string, sizeof(string), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall", string);
    format(string, sizeof(string), "\n{FFFFFF}/asellhouse /asellbiz /sellsbiz /setchamp /sban /mole /edit /givemoney /setmoney", string);
    format(string, sizeof(string), "\n{FFFFFF}/veh /setleader /destroycars /sethp /setarmor /house /housetp", string);
    format(string, sizeof(string), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {B40404}Head Administration{FFFFFF}: /mole /edit /givemoney /setmoney");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {B40404}Head Administration{FFFFFF}: /asellhouse /asellbiz /sellsbiz /setchamp /sban");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {B40404}Head Administration{FFFFFF}: /givegun /forceskin /setstat /setfamily");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {B40404}Head Administration{FFFFFF}: /veh /setleader /destroycars /sethp /setarmor /house /housetp");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 1338)
    {
    new string[1584];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{00FFFF}Community- & Projektmanager{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar", string);
    format(string, sizeof(string), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)", string);
    format(string, sizeof(string), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)", string);
    format(string, sizeof(string), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen /givegun /forceskin /setstat /setfamily", string);
    format(string, sizeof(string), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall");
    format(string, sizeof(string), "\n{FFFFFF}/asellhouse /asellbiz /sellsbiz /setchamp /sban /mole /edit /givemoney /setmoney", string);
    format(string, sizeof(string), "\n{FFFFFF}/veh /setleader /destroycars /sethp /setarmor /house /housetp /veh /delveh /setfkasse", string);
    format(string, sizeof(string), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {00FFFF}Community- & Projektmanagement{FFFFFF}: /veh /delveh /setfkasse");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 1339)
    {
    new string[1584];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{F78181}stellvertretender Projektleiter{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar", string);
    format(string, sizeof(string), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)", string);
    format(string, sizeof(string), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)", string);
    format(string, sizeof(string), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen /givegun /forceskin /setstat /setfamily", string);
    format(string, sizeof(string), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall /restartserver (Server Neustart)", string);
    format(string, sizeof(string), "\n{FFFFFF}/asellhouse /asellbiz /sellsbiz /setchamp /sban /mole /edit /givemoney /setmoney /umbenennen", string);
    format(string, sizeof(string), "\n{FFFFFF}/veh /setleader /destroycars /sethp /setarmor /house /housetp /veh /delveh /setfkasse", string);
    format(string, sizeof(string), "{00FF00}\n\nSupport-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "{00FF00}\nSupport-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {F78181}stellvertretende Projektleitung{FFFFFF}: /restartserver (Server Neustart) /umbenennen");*/
    }
    else if(PlayerInfo[playerid][pAdmin] == 2000)
    {
    new string[2016];
    format(string, sizeof(string), "\n{C9DCEF}Hier findest du alle Administrationsbefehle für den Admin-Rang '{FF0000}Projektleiter{C9DCEF}':");
    format(string, sizeof(string), "\n{FFFFFF}/mute /kick /a /warn /goto /gethere /aduty /oaduty /checkwaffen /tban /tunban", string);
    format(string, sizeof(string), "\n{FFFFFF}/countdown /aw /cleartext (/ct) /checkwarns /freeze /unfreeze /mark /gotomark /gotocar /getcar", string);
    format(string, sizeof(string), "\n{FFFFFF}/noooc /setteam (CnR) /bigears /cnn /recon /cam /startlotto /ban /cnn /accban (sehe /ban)", string);
    format(string, sizeof(string), "\n{FFFFFF}/gotols /jail /gotolv /gotosf /oldcar /gotobsn /gotodminsel (DM-Event Insel) /gotobays (Bayside)", string);
    format(string, sizeof(string), "\n{FFFFFF}/sban /sethp /setarmor /fixveh /alleentwaffnen /givegun /forceskin /setstat /setfamily", string);
    format(string, sizeof(string), "\n{FFFFFF}/healall /ipban (sehe /ban) /ainvite /auninvite /fraksperre /saveall /restartserver (Server Neustart)", string);
    format(string, sizeof(string), "\n{FFFFFF}/asellhouse /asellbiz /sellsbiz /setchamp /sban /mole /edit /givemoney /setmoney /umbenennen", string);
    format(string, sizeof(string), "\n{FFFFFF}/veh /setleader /destroycars /sethp /setarmor /house /housetp /veh /delveh /setfkasse", string);
    format(string, sizeof(string), "\n{FFFFFF}/setadmin /nold (Leader-Chat an/aus) /pdd /sprengen /aorten", string);
    format(string, sizeof(string), "\n{FFFFFF}/getip /clear /fh (fullheal) /fourdive /ajpon /ajpoff /zentrale", string);
    format(string, sizeof(string), "\n{FFFFFF}/adurchsuchen /alight /aschild /gotomyinsel", string);
    format(string, sizeof(string), "\n\n{00FF00}Support-System: /sa (Support-Chat (Admin)) /osup (Support öffnen) /ssup (Support schließen)", string);
    format(string, sizeof(string), "\n{00FF00}Support-System: /lsup (Support-Ticket löschen) /supports (offene Support-Tickets (Liste))");
    format(string, sizeof(string), "%s%s%s%s%s",string);
    ShowPlayerDialog(playerid, DIALOG_ADMB, DIALOG_STYLE_MSGBOX,"{FFFFFF}xGR - (C)Network | Administration",string,"Bestätigen","");
    /*SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {FF0000}Projektleitung{FFFFFF}: /setadmin /nold (Leader-Chat an/aus) /pdd /sprengen /aorten");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {FF0000}Projektleitung{FFFFFF}: /getip /clear /fh (fullheal) /fourdive /ajpon /ajpoff /zentrale");
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* {FF0000}Projektleitung{FFFFFF}: /adurchsuchen /alight /aschild /gotomyinsel");*/
    }
    }
    return 1;
    }

  • Du hast es nicht richtig gemacht.



    Dort steht vor jeder (bis auf der ersten) Zeile ein "%s" und am Ende des Formats ein "string".


    Da du string schonmal irgendwo definiert hast, nenne es "str" oder "strx" oder wie auch immer du es nennen willst.