Dialog: Liste: Kann die zu lange sein oder why geht das nicht???

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
  • hey leude
    Ich erde einfach nicht schlau wtf geht das nicht ist die lieste zu lang erkennt das pawno nicht oder hat es sonstige gründe?!?
    Bitte um hilfe.
    Hier code:
    if(strcmp(cmd, "/adminhilfe", true) == 0 || strcmp(cmd, "/ah", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pSupporter] == 1)
    {
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Supporter_Level_1,DIALOG_STYLE_LIST,"Supporterhilfe Level 1","/a \n /check \n /goto \n /kick \n /o \n /spawn \n /unfreeze \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 1)
    {
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Moderator_Stufe_1,DIALOG_STYLE_LIST,"Adminhelp Moderator Stufe 1","/admin(/a) \n /bigears \n /check \n /checkwarns \n /cleartext \n /cnn \n /getip \n /goto \n /kick \n /kickres \n /mute \n /o \n /sban \n /setint \n /spawn \n /unfreeze \n /warn \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 2)
    {
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Moderator_Stufe_2,DIALOG_STYLE_LIST,"Adminhelp Moderator Stufe 2","/admin(/a) \n /bigears \n /cam \n /check \n /checkwarns \n /cleartext \n /cnn \n /freeze \n /getip \n /goto \n /kick \n /kickres \n /mute \n /o \n /recon \n /respawnthiscar(/rtc) \n /sban \n /setint \n /setteam \n /spawn \n /unfreeze \n /warn \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 3)
    {
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Moderator_Stufe_3,DIALOG_STYLE_LIST,"Adminhelp Moderator Stufe 3","/admin(/a) \n /bigears \n /cam \n /check \n /checkwarns \n /cleartext \n /cnn \n /freeze \n /getcar \n /gethere \n /getip \n /goto \n /gotobsn \n /gotocar \n /gotols \n /gotolv \n /gotomark \n /gotosf \n /gotozivi \n /kick \n /kickres \n /mark \n /mute \n /o \n /oldcar \n /prison [Für Cheater] \n /recon \n /respawnthiscar(/rtc) \n /sban \n /setint \n /setteam \n /spawn \n /unfreeze \n /unprison \n /warn \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 4)
    {
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Admin_Stufe_1,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 1","/admin(/a) \n /asellbiz \n /asellhouse \n /bigears \n /cam \n /carreset \n /check \n /checkwarns \n /cleartext \n /cnn \n /destroycars \n /edit \n /fixveh \n /freeze \n /getcar \n /gethere \n /getip \n /goto \n /gotobsn \n /gotocar \n /gotols \n /gotolv \n /gotomark \n /gotosf \n /gotozivi \n /hq \n /kick \n /kickres \n /logout \n /logoutall \n /logoutpl \n /mark \n /mute \n /o \n /oldcar \n /prison [Für Cheater] \n /recon \n /respawnthiscar(/rtc) \n /sban \n /sellsbiz \n /setarmor \n /setchamp \n /setfamily \n /sethp \n /setint \n /setteam \n /spawn \n /umbenennen \n /unfreeze \n /unprison \n /veh \n /warn \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 1337)
    {
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Admin_Stufe_2,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 2","/admin(/a) \n /asellbiz \n /asellhouse \n /bigears \n /cam \n /carreset \n /check \n /checkwarns \n /cleartext \n /cnn \n /destroycars \n /edit \n /fixveh \n /fractionlist(/fl) \n /freeze \n /getcar \n /gethere \n /getip \n /goto \n /gotobsn \n /gotocar \n /gotols \n /gotolv \n /gotomark \n /gotosf \n /gotozivi \n /hq \n /kick \n /kickres \n /logout \n /logoutall \n /logoutpl \n /makesupp \n /mark \n /mute \n /o \n /oldcar \n /prison [Für Cheater] \n /recon \n /respawnthiscar(/rtc) \n /sban \n /sellsbiz \n /setarmor \n /setchamp \n /setfamily \n /sethp \n /setint \n /setteam \n /spawn \n /startlotto \n /umbenennen \n /unfreeze \n /unprison \n /veh \n /warn \n /weather \n /weatherall \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 1338)
    {
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Admin_Stufe_3,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 3","/admin(/a) \n /asellbiz \n /asellhouse \n /bigears \n /cam \n /carreset \n /check \n /checkwarns \n /cleartext \n /cnn \n /destroycars \n /edit \n /fixveh \n /fractionlist(/fl) \n /freeze \n /getcar \n /gethere \n /getip \n /goto \n /gotobsn \n /gotocar \n /gotols \n /gotolv \n /gotomark \n /gotosf \n /gotozivi \n /hq \n /kick \n /kickres \n /logout \n /logoutall \n /logoutpl \n /makesupp \n /mark \n /mute \n /o \n /oldcar \n /porttopos Scripter und Admin 1450 \n /prison [Für Cheater] \n /recon \n /respawnthiscar(/rtc) \n /sban \n /sellsbiz \n /setarmor \n /setchamp \n /setfamily \n /sethp \n /setint \n /setteam \n /spawn \n /startlotto \n /umbenennen \n /unfreeze \n /unprison \n /veh \n /warn \n /weather \n /weatherall \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 1339)
    {
    SendClientMessage(playerid, COLOR_YELLOW,"[ADMININFO:](Ab Admin-Level 4 bist Du in der Adminliste (/admins) nicht sichtbar)");
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Admin_Stufe_4,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 4","/admin(/a) \n /asellbiz \n /asellhouse \n /bigears \n /cam \n /carreset \n /check \n /checkwarns \n /cleartext \n /cnn \n /destroycars \n /edit \n /fixveh \n /fractionlist(/fl) \n /freeze \n /getcar \n /gethere \n /getip \n /goto \n /gotobsn \n /gotocar \n /gotols \n /gotolv \n /gotomark \n /gotosf \n /gotozivi \n /hq \n /kick \n /kickres \n /logout \n /logoutall \n /logoutpl \n /makesupp \n /mark \n /mute \n /o \n /oldcar \n /porttopos Scripter und Admin 1450 \n /prison [Für Cheater] \n /recon \n /respawnthiscar(/rtc) \n /sban \n /sellsbiz \n /setarmor \n /setchamp \n /setfamily \n /sethp \n /setint \n /setteam \n /spawn \n /startlotto \n /umbenennen \n /unfreeze \n /unprison \n /veh \n /warn \n /weather \n /weatherall \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 1450)
    {
    SendClientMessage(playerid, COLOR_YELLOW,"[ADMININFO:](Ab Admin-Level 4 bist Du in der Adminliste (/admins) nicht sichtbar)");
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Admin_Stufe_1450,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 1450","/admin(/a) \n /asellbiz \n /asellhouse \n /bigears \n /cam \n /carreset \n /check \n /checkwarns \n /cleartext \n /cnn \n /destroycars \n /edit \n /fixveh \n /fractionlist(/fl) \n /freeze \n /getcar \n /gethere \n /getip \n /gmx \n /goto \n /gotobsn \n /gotocar \n /gotols \n /gotolv \n /gotomark \n /gotosf \n /gotozivi \n /hq \n /kick \n /kickres \n /logout \n /logoutall \n /logoutpl \n /makeleader \n /makesupp \n /mark \n /mute \n /o \n /oldcar \n /porttopos Scripter und Admin 1450 \n /prison [Für Cheater] \n /recon \n /respawnthiscar(/rtc) \n /sban \n /sellsbiz \n /setarmor \n /setchamp \n /setfamily \n /sethp \n /setint \n /setteam \n /spawn \n /startlotto \n /umbenennen \n /unfreeze \n /unprison \n /veh \n /warn \n /weather \n /weatherall \n /wisper(/w)","OK"," ") ;


    }
    if (PlayerInfo[playerid][pAdmin] == 1451)
    {
    SendClientMessage(playerid, COLOR_YELLOW,"[ADMININFO:](Ab Admin-Level 4 bist Du in der Adminliste (/admins) nicht sichtbar)");
    ShowPlayerDialog(playerid,DIALOG_Adminhelp_Admin_Stufe_1451,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 1451 ***Serverowner***","/admin(/a) \n /asellbiz \n /asellhouse \n /ban \n /bigears \n /cam \n /carreset \n /check \n /checkwarns \n /cleartext \n /cnn \n /destroycars \n /edit \n /fixveh \n /fractionlist(/fl) \n /freeze \n /getcar \n /gethere \n /getip \n /givemoney \n /gmx \n /goto \n /gotobsn \n /gotocar \n /gotols \n /gotolv \n /gotomark \n /gotosf \n /gotozivi \n /hq \n /kick \n /kickres \n /logout \n /logoutall \n /logoutpl \n /makeadmin \n /makeleader \n /makesupp \n /mark \n /money \n /mute \n /o \n /oldcar \n /pban \n /porttopos Scripter und Admin 1450 \n /prison [Für Cheater] \n /recon \n /respawnthiscar(/rtc) \n /sban \n /sellsbiz \n /setarmor \n /setchamp \n /setfamily \n /sethp \n /setint \n /setstat \n /setteam \n /spawn \n /startlotto \n /umbenennen \n /unfreeze \n /unprison \n /veh \n /warn \n /weather \n /weatherall \n /wisper(/w)","OK"," ") ;


    }
    }
    return 1;
    }


    Danke


    MfG: Sonic

    I didn't hit you. I high fived your face.

  • Wo ist denn jetzt dein Problem?

    Einmal editiert, zuletzt von |GXR|B3ar ()

  • Vielleicht solltest du noch sagen was genau nicht geht.


    Prinzipiell denke ich mal, dass der Compiler meckert, weil die Zeile zu lang ist. Der Dialog an sich funktioniert dann, du musst nur die Zeile in Pawno verkleinern: Enter ist das Stichwort.

  • ok ja mach ich also ich compile und kriege diese errorfolge von pawno egal ob ich mein selfmade ausklammere oder nicht:


    Work.pwn(34729) : error 075: input line too long (after substitutions)
    Work.pwn(34731) : error 017: undefined symbol "prison"
    Work.pwn(34731) : error 029: invalid expression, assumed zero
    Work.pwn(34731) : error 017: undefined symbol "n"
    Work.pwn(34731) : fatal error 107: too many error messages on one line

    I didn't hit you. I high fived your face.

  • Kannst strcat benutzen:


    new ahelp[1024] = "\
    1. Linie\n\
    2. Linie\n\
    3. Linie\n\
    4. Linie\n\
    5. Linie\n";
    strcat(ahelp, "\
    6. Linie\n\
    7. Linie\n\
    8. Linie\n\
    9. Linie\n\
    10. Linie");
    ShowPlayerDialog(playerid, DIALOG_ADMIN_HELP_LEVEL_1/*Oder so^^*/, DIALOG_STYLE_MSGBOX, "Admin Help", ahelp, "Ok", "");


    //Edit: Besseres Beispiel :)
    //Edit2: Versteh zwar nicht wieso es falsch erkannt wird aber naja, so müsste es gehen.

    5 Mal editiert, zuletzt von n0skillg3t ()

  • WTF O.o so einfach soll das sein :] ich dachte das muss mit einem speziellen zeichensatz aufgetrennt werden ok danke teste ich doch gleich mal ;)


    //EDIT



    Em JA ist bei deinem beispiel nicht was falsch :[ warum steht da in der mitte strcat(DialogText, "\

    I didn't hit you. I high fived your face.

    Einmal editiert, zuletzt von Sonic Hedgehog ()