5 Errors bei ShowPlayerDialog -.-

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
  • Hi Leute,


    Ich bekomme hier i.wie 5 Errors ich habe keine ahnung warum -.-



    case WEAPON_DIALOG: {
    format(dstring, sizeof(dstring),"{6600CC}|<-------Waffen------>|\
    \nSniper Rifle [Preis: 10000€] [Munitions Preis: %d$]\
    \nAk47 [Preis: 6150€] [Munitions Preis: %d$ ]\
    \nM4 [Preis: 7200€] [Munitions Preis: %d$ ]\
    \nCombat Shotgun [Preis: 9800€] [Munitions Preis: %d$ ]\
    \nShotgun [Preis: 2500€] [Munitions Preis: %d$ ]\
    \nDesert Eagle [Preis: 1500€] [Munitions Preis: %d$ ]\
    \nMicro SMG [Preis: 4250€] [Munitions Preis: %d$ ]\
    \nMP5 [Preis: 5250€] [Munitions Preis: %d$]\
    \nSD-Pistole [Preis: 3000€] [Munitions Preis: %d$]",
    SNIPER_PRICE,
    ROCKET_PRICE,
    MOLOTIV_PRICE,
    C_SHOTGUN_PRICE,
    S_SHOTGUN_PRICE,
    DESERT_PRICE,
    GRANADE_PRICE,
    MP5_PRICE,
    SD_PRICE);
    /*new test[1023];
    strcat(test,"{6600CC}|<-------Waffen------>| \n");
    strcat(test,"Sniper Rifle [Preis: 10000€] [Munitions Preis: %d$] \n",SNIPER_PRICE);
    strcat(test,"Ak47 [Preis: 6150€] [Munitions Preis: %d$ ] \n",ROCKET_PRICE);
    strcat(test,"M4 [Preis: 7200€] [Munitions Preis: %d$ ] \n",MOLOTIV_PRICE);
    strcat(test,"Combat Shotgun [Preis: 9800€] [Munitions Preis: %d$ ] \n",C_SHOTGUN_PRICE);
    strcat(test,"Shotgun [Preis: 2500€] [Munitions Preis: %d$ ] \n",S_SHOTGUN_PRICE);
    strcat(test,"Desert Eagle [Preis: 1500€] [Munitions Preis: %d$ ] \n",DESERT_PRICE);
    strcat(test,"Micro SMG [Preis: 4250€] [Munitions Preis: %d$ ] \n",GRANADE_PRICE);
    strcat(test,"MP5 [Preis: 5250€] [Munitions Preis: %d$ \n",MP5_PRICE);
    strcat(test,"SD-Pistole [Preis: 5250€] [Munitions Preis: %d$ \n",SD_PRICE); */
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_LIST,"{003399}W{00FF66}affenladen",dstring,"Weiter","Abbrechen");




    EDIT: Sry Errors vergessen :D



    (301) : error 075: input line too long (after substitutions)
    (302) : error 037: invalid string (possibly non-terminated string)
    (302) : error 029: invalid expression, assumed zero
    (302) : error 029: invalid expression, assumed zero
    (302) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.



    Error Zeilen :


    302 :
    \nSD-Pistole [Preis: 3000€] [Munitions Preis: %d$]",


    301:
    \nMP5 [Preis: 5250€] [Munitions Preis: %d$]\

  • Nein ich habe es anders gemacht :


    EDIT: error Codes stehen oben.
    stock ShowDialog(playerid, dialog)
    {
    new dstring[123];
    switch(dialog)
    {
    case WEAPON_DIALOG: {
    format(dstring, sizeof(dstring),"{6600CC}|<-------Waffen------>|\
    \nSniper Rifle [Preis: 10000€] [Munitions Preis: %d$]\
    \nAk47 [Preis: 6150€] [Munitions Preis: %d$ ]\
    \nM4 [Preis: 7200€] [Munitions Preis: %d$ ]\
    \nCombat Shotgun [Preis: 9800€] [Munitions Preis: %d$ ]\
    \nShotgun [Preis: 2500€] [Munitions Preis: %d$ ]\
    \nDesert Eagle [Preis: 1500€] [Munitions Preis: %d$ ]\
    \nMicro SMG [Preis: 4250€] [Munitions Preis: %d$ ]\
    \nMP5 [Preis: 5250€] [Munitions Preis: %d$]\
    \nSD-Pistole [Preis: 3000€] [Munitions Preis: %d$]",
    SNIPER_PRICE,
    ROCKET_PRICE,
    MOLOTIV_PRICE,
    C_SHOTGUN_PRICE,
    S_SHOTGUN_PRICE,
    DESERT_PRICE,
    GRANADE_PRICE,
    MP5_PRICE,
    SD_PRICE);
    /*new test[1023];
    strcat(test,"{6600CC}|<-------Waffen------>| \n");
    strcat(test,"Sniper Rifle [Preis: 10000€] [Munitions Preis: %d$] \n",SNIPER_PRICE);
    strcat(test,"Ak47 [Preis: 6150€] [Munitions Preis: %d$ ] \n",ROCKET_PRICE);
    strcat(test,"M4 [Preis: 7200€] [Munitions Preis: %d$ ] \n",MOLOTIV_PRICE);
    strcat(test,"Combat Shotgun [Preis: 9800€] [Munitions Preis: %d$ ] \n",C_SHOTGUN_PRICE);
    strcat(test,"Shotgun [Preis: 2500€] [Munitions Preis: %d$ ] \n",S_SHOTGUN_PRICE);
    strcat(test,"Desert Eagle [Preis: 1500€] [Munitions Preis: %d$ ] \n",DESERT_PRICE);
    strcat(test,"Micro SMG [Preis: 4250€] [Munitions Preis: %d$ ] \n",GRANADE_PRICE);
    strcat(test,"MP5 [Preis: 5250€] [Munitions Preis: %d$ \n",MP5_PRICE);
    strcat(test,"SD-Pistole [Preis: 5250€] [Munitions Preis: %d$ \n",SD_PRICE); */
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_LIST,"{003399}W{00FF66}affenladen",dstring,"Weiter","Abbrechen");
    }
    case WEAPON_DIALOG1: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Sniper brauchst .\n Munition Preis pro Stück: %d$",SNIPER_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Sniper Rifle",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG2: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Ak47 brauchst .\n Munition Preis pro Stück: %d$",ROCKET_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Ak47",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG3: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die M4 brauchst .\n Munition Preis pro Stück: %d$",MOLOTIV_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}M4",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG4: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Combat Shotgun brauchst .\n Munition Preis pro Stück: %d$",C_SHOTGUN_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Combat ShotGun",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG5: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Shotgun brauchst .\n Munition Preis pro Stück: %d$",S_SHOTGUN_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}ShotGun",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG6: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Desert Eagle brauchst .\n Munition Preis pro Stück: %d$",DESERT_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Desert Eagle",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG7: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Micro SMG brauchst .\n Munition Preis pro Stück: %d$",GRANADE_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Micro SMG",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG8: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die MP5 brauchst .\n Munition Preis pro Stück: %d$",MP5_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}MP5",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG10: {
    format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die SD-Pistole brauchst .\n Munition Preis pro Stück: %d$",SD_PRICE);
    ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}SD-Pistole",dstring,"Kaufen","Abbrechen");
    }
    case WEAPON_DIALOG9: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_MSGBOX, "{FF0000}Waffenladen","{FF6600}Willst du den Shop {6600CC}öffnen{33CC00}oder{00FFFF}schließen{FF6600}?","Öffnen","Schließen");
    }
    return 0;
    }