[Ajuda] DIALOG LIST sу reconhece LISTITEM 0
#1

Iae galera, beleza?

Bom, criei o comando "/veiculosid" e coloquei como DIALOG LIST. Mas sу reconhece o "listitem == 0", ou seja, os outros "listitem == 1", "listitem == 2", ..., "listitem == 23" nгo reconhece. Bom, vou deixar aqui pra vocкs como estб. Se puderem me ajudar serei grato.


pawn Код:
//=========================  DEFINES DIALOG NAME
#define LETRASID    53
#define LETRAA      54
#define LETRAB      55
#define LETRAC      56
#define LETRAD      57
#define LETRAE      58
#define LETRAF      59
#define LETRAG      60
#define LETRAH      61
#define LETRAI      62
#define LETRAJ      63
#define LETRAK      64
#define LETRAL      65
#define LETRAM      66
#define LETRAN      67
#define LETRAO      68
#define LETRAP      69
#define LETRAQ      70
#define LETRAR      71
#define LETRAS      72
#define LETRAT      73
#define LETRAU      74
#define LETRAV      75
#define LETRAW      76
#define LETRAX      77
#define LETRAZ      78
pawn Код:
//================ COMANDO
if(strcmp(cmd, "/veiculosid", true) == 0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] >= 1){
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nX\nZ", "OK", "Cancelar");
return 1;
}
}
pawn Код:
//====================== DIALOG's
if(dialogid == LETRAA) // Letra A
{
if(response)
{
if(listitem == 8)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAB) // Letra B
{
if(response)
{
if(listitem == 26)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAC) // Letra C
{
if(response)
{
if(listitem == 14)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAD) // Letra D
{
if(response)
{
if(listitem == 6)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAE) // Letra E
{
if(response)
{
if(listitem == 6)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAF) // Letra F
{
if(response)
{
if(listitem == 16)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAG) // Letra G
{
if(response)
{
if(listitem == 3)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAH) // Letra H
{
if(response)
{
if(listitem == 11)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAI) // Letra I
{
if(response)
{
if(listitem == 2)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAJ) // Letra J
{
if(response)
{
if(listitem == 3)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAK) // Letra K
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAL) // Letra L
{
if(response)
{
if(listitem == 4)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAM) // Letra M
{
if(response)
{
if(listitem == 14)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAN) // Letra N
{
if(response)
{
if(listitem == 4)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAQ) // Letra O
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAP) // Letra P
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAQ) // Letra Q
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAR) // Letra R
{
if(response)
{
if(listitem == 17)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAS) // Letra S
{
if(response)
{
if(listitem == 28)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAT) // Letra T
{
if(response)
{
if(listitem == 14)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAU) // Letra U
{
if(response)
{
if(listitem == 3)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAV) // Letra V
{
if(response)
{
if(listitem == 4)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAW) // Letra W
{
if(response)
{
if(listitem == 5)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}

if(dialogid == LETRAZ) // Letra Z
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, LETRASID, DIALOG_STYLE_LIST, "Veiculos ID - Letras", "A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM\nN\nO\nP\nQ\nR\nS\nT\nU\nV\nW\nZ", "OK", "Cancelar");
}
return 1;
}


if(dialogid == LETRASID) // Carros ID
{
if(response)
{
if(listitem == 0) // - A
{
ShowPlayerDialog(playerid,LETRAA, DIALOG_STYLE_LIST, "Letra A", "AT-400: 577\nAndromeda: 592\nAdmiral: 445\nAlpha: 602\nAmbulance: 416\nArtict1: 435\nArtict2: 450\nArtic3: 591\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 1) // - B
{
ShowPlayerDialog(playerid,LETRAB, DIALOG_STYLE_LIST, "Letra B", "BF-400: 581\nBeagle: 511\nBaggage: 485\nBandito: 568\nBanshee: 429\nBarracks: 433\nBenson: 499\nBfinject: 424\nBlade: 536\nBlistac: 496\nBloodra: 504\nBobcat: 422\nburg: 609\nBoxville: 498\nBravura: 401\nBroadway: 575\nBuccanee: 518\nBuffalo: 402\nBullet: 541\nBagboxb: 607\nBurrito: 482\nBus: 431\nBike: 509\nBMX: 481\nBagboxa: 606\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 2) // - C
{
ShowPlayerDialog(playerid,LETRAC, DIALOG_STYLE_LIST, "Letra C", "CopBike: 523\nCropdust: 512\nCoastGuard: 472\nCaddy: 457\nCadrona: 527\nCamper: 483\nCement: 524\nCheetah: 415\nClover: 542\nClub: 589\nCoach: 437\nCombine: 532\nComet: 480\nCopCarLS: 596\nCopCar: 599\nCopCarSF: 597\nCopCarLV: 598\nCft30: 578\nCozer: 486\nCargobob: 548\nCabbie: 438\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 3) // - D
{
ShowPlayerDialog(playerid,LETRAD, DIALOG_STYLE_LIST, "Letra D", "Dodo: 593\nDinghy: 473\nDumper: 406\nDuneride: 573\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 4) // - E
{
ShowPlayerDialog(playerid,LETRAE, DIALOG_STYLE_LIST, "Letra E", "Elegant: 507\nElegy: 562\nEmperor: 585\nEsperant: 419\nEuros: 587\nEnforcer: 427\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 5) // - F
{
ShowPlayerDialog(playerid,LETRAF, DIALOG_STYLE_LIST, "Letra F", "Faggio: 462\nFCR-900: 521\nFreeway: 463\nFbiranch: 490\nFbitruck: 528\nFeltze: 533\nFirela: 544\nFiretruck: 407Flash: 565\nFlatbed: 455\nForklift: 530\nFortune: 526\nFreight: 537\nFarmtr1: 610\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 6) // - G
{
ShowPlayerDialog(playerid,LETRAG, DIALOG_STYLE_LIST, "Letra G", "Glendale: 466\nGlenshit: 604\nGreenwoo: 492\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 7) // - H
{
ShowPlayerDialog(playerid,LETRAH, DIALOG_STYLE_LIST, "Letra H", "Hydra: 520\nHermes: 474\nHotdog: 588\nHotrina: 502\nHotrinb: 503\nHotring: 594\nHustler: 545\nHuntley: 579\nHotknife: 434\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 8) // - I
{
ShowPlayerDialog(playerid,LETRAI, DIALOG_STYLE_LIST, "Letra I", "Infernus: 411\nIntruder: 546\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 9) // - J
{
ShowPlayerDialog(playerid,LETRAJ, DIALOG_STYLE_LIST, "Letra J", "Jester: 559\nJourney: 508\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 10) // - K
{
ShowPlayerDialog(playerid,LETRAK, DIALOG_STYLE_LIST, "Letra K", "Kart: 571\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 11) // - L
{
ShowPlayerDialog(playerid,LETRAL, DIALOG_STYLE_LIST, "Letra L", "Launch: 595\nLandstal: 400\nLeviathn: 417\nLinerun: 403\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 12) // - M
{
ShowPlayerDialog(playerid,LETRAM, DIALOG_STYLE_LIST, "Letra M", "Marquis: 484\nMajestic: 517\nManana: 410\nMerit: 551\nMesa: 500\nMoonbeam: 418\nMowerr: 572\nMrwhoop: 423\nMule: 414\nMonster: 444\nMonsterA: 556\nMonsterB: 557\nMountain Bike: 510\nMaverick: 487\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 13) // - N
{
ShowPlayerDialog(playerid,LETRAN, DIALOG_STYLE_LIST, "Letra N", "NRG-500: 522\nNevada: 553\nNebula: 516\nNewsvan: 582\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 14) // - O
{
ShowPlayerDialog(playerid,LETRAO, DIALOG_STYLE_LIST, "Letra O", "Oceanic: 467\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 15) // - P
{
ShowPlayerDialog(playerid,LETRAP, DIALOG_STYLE_LIST, "Letra P", "PCJ-600: 461\nPizzaboy: 448\nPredator: 430\nPacker: 443\nPatriot: 470\nPeren: 404\nPetro: 514\nPhoenix: 603\nPicador: 600\nPony: 413\nPremier: 426\nPrevion: 436\nPrimo: 547\nPolmav: 497\nPetrotr: 584\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 16) // - Q
{
ShowPlayerDialog(playerid,LETRAQ, DIALOG_STYLE_LIST, "Letra Q", "Quad: 471\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 17) // - R
{
ShowPlayerDialog(playerid,LETRAR, DIALOG_STYLE_LIST, "Letra R", "Rustler: 476\nRC Barron: 464\nReefer: 453\nRancher: 489\nRcbandit: 441\nRccam: 594\nRctiger: 564\nRdtrain: 515\nRegina: 479\nRemingtn: 534\nRhino: 432\nRnchlure: 505\nRcraider: 465\nRomero: 442\nRumpo: 440\nRaindanc: 563\nRcgoblin: 501\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 18) // - S
{
ShowPlayerDialog(playerid,LETRAS, DIALOG_STYLE_LIST, "Letra S", "Sanchez: 468\nStuntplane: 513\nSkimmer: 460\nSparrow: 469\nShamal: 519\nSpeeder: 452\nSqualo: 446\nSabre: 475\nSadler: 543\nSadlshit: 605\nSandking: 495\nSavanna: 567\nSecurica: 428\nSentinel: 405\nSlamvan: 535\nSolair: 458\nStafford: 580\nStallion: 439\nStratum: 561\nStretch: 409\nSultan: 560\nSunrise: 550\nSupergt: 560\nSwatvan: 601\nSweeper: 574\nStreak: 538\nStreakc: 570\nSeasparr: 447\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 19) // - T
{
ShowPlayerDialog(playerid,LETRAT, DIALOG_STYLE_LIST, "Letra T", "Tropic: 454\nTahoma: 566\nTampa: 499\nTaxi: 420\nTopfun: 459\nTornado: 576\nTowtruck: 525\nTrash: 408\nTug: 583\nTurismo: 451\nTram: 449\nTugstair: 608\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 20) // - U
{
ShowPlayerDialog(playerid,LETRAU, DIALOG_STYLE_LIST, "Letra U", "Uranus: 558\nUtility: 522\nUtiltr1: 611\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 21) // - V
{
ShowPlayerDialog(playerid,LETRAV, DIALOG_STYLE_LIST, "Letra V", "Vortex: 539\nVincent: 540\nVirgo: 491\nVcnmav: 488\nVoodoo: 412\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 22) // - W
{
ShowPlayerDialog(playerid,LETRAW, DIALOG_STYLE_LIST, "Letra W", "Washington: 421\nWalton: 478\nWillard: 529\nWindsor: 555\nWayfarer: 586\n{FF0000}Voltar", "Ok", "Cancelar");
}
if(listitem == 23) // - Z
{
ShowPlayerDialog(playerid,LETRAZ, DIALOG_STYLE_LIST, "Letra Z", "ZR-350: 477\n{FF0000}Voltar", "Ok", "Cancelar");
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return 1;
}
Reply


Messages In This Thread
Problema com DIALOG - by Fr4nCh1 - 27.06.2014, 03:55
Re: DIALOG LIST sу reconhece LISTITEM 0 - by darkxdll - 27.06.2014, 05:37
Re: DIALOG LIST sу reconhece LISTITEM 0 - by n0minal - 27.06.2014, 05:39
Re: DIALOG LIST sу reconhece LISTITEM 0 - by Fr4nCh1 - 27.06.2014, 06:32
Re: DIALOG LIST sу reconhece LISTITEM 0 - by UPsamp - 27.06.2014, 12:18

Forum Jump:


Users browsing this thread: 1 Guest(s)