Dialog fehler nicht erkennbar

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
  • Abend, bei meinem dialog geht die funktion zwar, aber nicht der zurück botton... wenn ich den zweiten botton drücke (back) komm ich zu einem ganz anderen dialog.


    Sie haben nicht die gleiche ID und heißen auch ganz anderst, an was kann sowas liegen?


    if(dialogid==DIALOG_SHOP_HANDWEA)
    {
    if(response==1)
    {
    switch(listitem)
    {
    case 0 :
    {
    if GetPlayerMoney(playerid) > 500
    *then
    {
    GivePlayerWeapon(playerid, 17,3);
    SendClientMessage(playerid,COLOR_GREEN,"You bought tear gas 3x for 500$");
    GivePlayerMoney(playerid, -500);
    ShowPlayerDialog(playerid,DIALOG_SHOP_HANDWEA,DIALOG_STYLE_LIST,"Thrown","Tear gas 3x 500$\nGrenade 3x 900$\nMolotov Cocktail 3x 900$\nSatchel Charge 3x 1100$","Kaufen","Back");
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED, "You haven`t got enough money!");
    TogglePlayerControllable(playerid, 1);
    ShowPlayerDialog(playerid,DIALOG_SHOP_HANDWEA,DIALOG_STYLE_LIST,"Thrown","Tear gas 3x 500$\nGrenade 3x 900$\nMolotov Cocktail 3x 900$\nSatchel Charge 3x 1100$","Kaufen","Back");
    return 1;
    }
    }


    case 1 :
    {
    if GetPlayerMoney(playerid) > 900
    *then
    {
    GivePlayerWeapon(playerid, 16,3);
    SendClientMessage(playerid,COLOR_GREEN,"You bought grenade 3x for 900$");
    GivePlayerMoney(playerid, -900);
    ShowPlayerDialog(playerid,DIALOG_SHOP_HANDWEA,DIALOG_STYLE_LIST,"Thrown","Tear gas 3x 500$\nGrenade 3x 900$\nMolotov Cocktail 3x 900$\nSatchel Charge 3x 1100$","Kaufen","Back");
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED, "You haven`t got enough money!");
    TogglePlayerControllable(playerid, 1);
    ShowPlayerDialog(playerid,DIALOG_SHOP_HANDWEA,DIALOG_STYLE_LIST,"Thrown","Tear gas 3x 500$\nGrenade 3x 900$\nMolotov Cocktail 3x 900$\nSatchel Charge 3x 1100$","Kaufen","Back");
    return 1;
    }
    }


    case 2 :
    {
    if GetPlayerMoney(playerid) > 900
    *then
    {
    GivePlayerWeapon(playerid, 18,3);
    SendClientMessage(playerid,COLOR_GREEN,"You bought molotov cocktail 3x for 900$");
    GivePlayerMoney(playerid, -900);
    ShowPlayerDialog(playerid,DIALOG_SHOP_HANDWEA,DIALOG_STYLE_LIST,"Thrown","Tear gas 3x 500$\nGrenade 3x 900$\nMolotov Cocktail 3x 900$\nSatchel Charge 3x 1100$","Kaufen","Back");
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED, "You haven`t got enough money!");
    TogglePlayerControllable(playerid, 1);
    ShowPlayerDialog(playerid,DIALOG_SHOP_HANDWEA,DIALOG_STYLE_LIST,"Thrown","Tear gas 3x 500$\nGrenade 3x 900$\nMolotov Cocktail 3x 900$\nSatchel Charge 3x 1100$","Kaufen","Back");
    return 1;
    }
    }


    case 3 :
    {
    if GetPlayerMoney(playerid) > 1100
    *then
    {
    GivePlayerWeapon(playerid, 39,3);
    GivePlayerWeapon(playerid, 40,3);
    SendClientMessage(playerid,COLOR_GREEN,"You bought satchel charge 3x for 1100$");
    GivePlayerMoney(playerid, -1100);
    ShowPlayerDialog(playerid,DIALOG_SHOP_HANDWEA,DIALOG_STYLE_LIST,"Thrown","Tear gas 3x 500$\nGrenade 3x 900$\nMolotov Cocktail 3x 900$\nSatchel Charge 3x 1100$","Kaufen","Back");
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED, "You haven`t got enough money!");
    TogglePlayerControllable(playerid, 1);
    ShowPlayerDialog(playerid,DIALOG_SHOP_HANDWEA,DIALOG_STYLE_LIST,"Thrown","Tear gas 3x 500$\nGrenade 3x 900$\nMolotov Cocktail 3x 900$\nSatchel Charge 3x 1100$","Kaufen","Back");
    return 1;
    }
    }
    }
    }
    }
    if(response == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_WEAPONTS,DIALOG_STYLE_LIST,"Weaponts","Thrown\nPistols\nShotguns\nSub-maschine guns\nRifles","More","Back");
    return 1;
    }


    Ich bitte um hilfe, ich mach schon zeit zwei tagen daran rum, finde aber keinen fehler :(

    Einmal editiert, zuletzt von Jimmy93432 ()