Problem mit OnDIalogResponse

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 Leute,
    Habe ein wahrscheinlich kleines POroblem mit einem Dialog.
    Unswar wird der Dialog nicht angezeigt wenn man auf Zurück/Back klickt ( if(!response) )


    Hier der bisheirge COde:
    else if(dialogid == 32)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(TheLanguage[playerid] == 2)
    {
    ShowPlayerDialog(playerid,33,DIALOG_STYLE_LIST,"Pistols","9mm\nSilenced 9mm\nDesert Eagle","Ok","Back");
    }
    else{
    ShowPlayerDialog(playerid,33,DIALOG_STYLE_LIST,"Pistolen","9mm\n9mm mit Schalldämpfer\nDesert Eagle","Ok","Zurück");
    }
    }
    else if(listitem == 1)
    {
    ShowPlayerDialog(playerid,34,DIALOG_STYLE_LIST,"MicroSMGs","Tec9\nMicro SMG","Ok","Back");
    }
    else if(listitem == 2)
    {
    if(TheLanguage[playerid] == 2)
    {
    ShowPlayerDialog(playerid,35,DIALOG_STYLE_LIST,"Shotguns","Shotgun\nSawnoff Shotgun\nCombat Shotgun","Ok","Back");
    }
    else{
    ShowPlayerDialog(playerid,35,DIALOG_STYLE_LIST,"Schrotflinten","Schrotflinte\nAbgesägte Schrotflinte\nAuto. Schrotflinte","Ok","Zurück");
    }
    }
    else if(listitem == 3)
    {
    if(TheLanguage[playerid] == 2)
    {
    ShowPlayerDialog(playerid,36,DIALOG_STYLE_LIST,"Thrown","Grenades\nRemote Explosives","Ok","Back");
    }
    else{
    ShowPlayerDialog(playerid,36,DIALOG_STYLE_LIST,"Wurfwaffen","Granaten\nRucksackbomben","Ok","Zurück");
    }
    }
    else if(listitem ==4)
    {
    if(TheLanguage[playerid] == 2)
    {
    ShowPlayerDialog(playerid,37,DIALOG_STYLE_LIST,"Armor","Body armor","Ok","Back");
    }
    else{
    ShowPlayerDialog(playerid,37,DIALOG_STYLE_LIST,"Schutzweste","Kugelsichere Weste","Ok","Zurück");
    }
    }
    else if(listitem == 5)
    {
    ShowPlayerDialog(playerid,38,DIALOG_STYLE_LIST,"SMG","MP-5","Ok","Back");
    }
    else if(listitem == 6)
    {
    if(TheLanguage[playerid] == 2)
    {
    ShowPlayerDialog(playerid,39,DIALOG_STYLE_LIST,"Rifles","Rifle\nSniper rifle","Ok","Back");
    }
    else{
    ShowPlayerDialog(playerid,39,DIALOG_STYLE_LIST,"Gewehre","Gewehr\nPräzisionsgewehr","Ok","Zurück");
    }
    }
    else if(listitem == 7)
    {
    ShowPlayerDialog(playerid,39,DIALOG_STYLE_LIST,"Assault","M4\nAK-47","Ok","Back");
    }
    }
    if(!response)return ShowPlayerDialog(playerid,32,DIALOG_STYLE_LIST,"Weapon","Pistols\nMicroSMGs\nShotguns\nThrown\nArmor\nSMG\nRifles\nAssault","Ok","Cancel");
    return 1;
    }


    P.S: Das SCript isz zweisprachig gescriptet daher if(TheLanguage[playerid] ...
    lg