Loop in dialog :L
#1

Anyone can helpme ?
I am trying to show all the cars with AVenda in a DIALOG_STYLE_LIST


But doesn't work :L
pawn Код:
if(strcmp(cmd, "/felipe", true) == 0)
    {
        if(pLogado[playerid] > 0)
        {
            for(new i = 1; i < sizeof(CarInfo); ++i)
            {
                if(CarInfo[i][cAVenda] == 1) {
                    format(SkillBase, sizeof(SkillBase), "Veнculo a venda: Placa: LS-%i | Qtd de donos antigos: %i | Preзo; %i\n", i, CarInfo[i][cDonos], GetVehiclePrice(i));
                    ShowPlayerDialog(playerid,DIALOG_NADA,DIALOG_STYLE_MSGBOX,"FOREVER ALONE",string,"OK","");
                }
                return 0x1;
            }
        }
        return 0x01;
    }
Thanks a lot .
Reply


Messages In This Thread
Loop in dialog :L - by Ricop522 - 05.06.2011, 00:51
Re: Loop in dialog :L - by Ricop522 - 05.06.2011, 18:14
Re: Loop in dialog :L - by *IsBack - 05.06.2011, 18:25
Re: Loop in dialog :L - by Ricop522 - 05.06.2011, 20:25
Re: Loop in dialog :L - by Johnson_boy - 05.06.2011, 22:09

Forum Jump:


Users browsing this thread: 2 Guest(s)