{HILFE] DIALOG Problem

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 habe ein Problem kannst du mir helfen /v menu


    ich habe ein Problem mit /V menu alle gehen bis auf Airplane da geht einfach kein 2tes Dialog auf wo die namen der
    Flugzeuge kannst mir pls Helfen es gibt keine Warrnig oder error



    #define Dialog_Bikes 1634
    #define Dialog_Cars 364
    #define Dialog_Airplanes 8456
    #define Dialog_Heli 354#define DIALOG_V 6


    if (strcmp("/v", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_V,DIALOG_STYLE_LIST,"{FFFFFF}Vehicle Menu","{FF0000}Bike\n{00FF40}Car\n{FF0000}Flugzeuge\n{00FF40}Helicopter","Ok","Beenden");
    return 1;
    }


    if(dialogid == DIALOG_V)
    {
    if(response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,Dialog_Bikes,DIALOG_STYLE_LIST,"Bike's","NRG-500\nSanchez\nBF-400\nPCJ-600\nFCR-900\nFreeway\nQuad","Spawn","Beenden");
    return 1;
    }
    if(listitem == 1)
    {
    ShowPlayerDialog(playerid,Dialog_Cars,DIALOG_STYLE_LIST,"Car's","Hotring Racer\nInfernus\nBullet\nCheetah\nBanshee\nTurismo\nSuper GT\nSultan\nJester\nZR-350","Spawn","Beenden");
    return 1;
    }


    if(listitem == 3)
    {
    ShowPlayerDialog(playerid,Dialog_Heli,DIALOG_STYLE_LIST,"Helicopter's","Maverick\nSparrow\nRaindance\nLeviathan\nCargobob","Spawn","Beenden");
    return 1;
    }


    if(listitem == 4)
    {
    ShowPlayerDialog(playerid,Dialog_Airplanes,DIALOG_STYLE_LIST,"Airplane's","AT-400\nAndromada\nNevada\nShamal\nDodo\nStuntplane\nCropduster\nSkimmer","Spawn","Beenden");
    return 1;
    }
    }
    }


    if(dialogid == Dialog_Bikes)
    {
    if(response)
    {
    if(listitem == 0)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(522,x+2,y+2,z,0,0,131,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 1)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(468,x+2,y+2,z,0,0,135,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 2)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(581,x+2,y+2,z,0,0,101,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 3)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(461,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 4)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(521,x+2,y+2,z,0,0,151,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 5)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(463,x+2,y+2,z,0,0,161,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 6)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(471,x+2,y+2,z,0,0,141,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    }
    }


    if(dialogid == Dialog_Cars)
    {
    if(response)
    {
    if(listitem == 0)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(502,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 1)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(411,x+2,y+2,z,0,0,151,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 2)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(541,x+2,y+2,z,0,0,1,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 3)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(415,x+2,y+2,z,0,0,156,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 4)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(429,x+2,y+2,z,0,0,163,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 5)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(451,x+2,y+2,z,0,0,168,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 6)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(506,x+2,y+2,z,0,0,168,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 7)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(559,x+2,y+2,z,0,0,122,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 8)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(447,x+2,y+2,z,0,0,135,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    }
    }

    if(dialogid == Dialog_Airplanes)
    {
    if(response)
    {
    if(listitem == 0)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(577,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 1)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(592,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 2)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(553,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 3)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(519,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 4)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(593,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 5)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(513,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 6)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(512,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 7)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(560,x+2,y+2,z,0,0,111,131);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    }
    }

    if(dialogid == Dialog_Heli)
    {
    if(response)
    {
    if(listitem == 0)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(487,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 1)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(469,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 2)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(563,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 3)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(417,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    if(listitem == 4)
    {
    new Float:x,Float:y,Float:z,spawncar;
    GetPlayerPos(playerid,x,y,z);
    spawncar=CreateVehicle(548,x+2,y+2,z,0,0,255,0);
    PutPlayerInVehicle(playerid,spawncar,0);
    return 1;
    }
    }
    }




    währe sehr nett wen du mir helfen kannst


    MFG
    Phantom