" ALL " as dialog list
#1

I think I thought I saw on a server, once, were gang players are dialog items, that you could click on the dialog item and were shown his info. I can do that for show all players on a dialog list:
pawn Код:
dcmd_allip(playerid, params[])
{
    new string[300];
    foreach(Player, i)
    {
        format(string,sizeof(string),""#red" %s (id: %d) | "#green"Ip: %s\n",GetMyName(i),i,GetMyIp(i));
    }
    return ShowPlayerDialog(playerid,IP_DIALOG,DIALOG_STYLE_LIST,""#red"IP "#green"List",string,"Ok","");
}

But how can I make the item list as a dialog option and show anything about player, as example?
pawn Код:
if(dialogid == IP_DIALOG)
{
     switch(listitem) { case 0: ... }:
}
Or even make all names from a array into dialog, as listitem.
Reply


Messages In This Thread
" ALL " as dialog list - by blackwave - 02.03.2011, 21:31
Re: " ALL " as dialog list - by Lorrden - 02.03.2011, 22:34
Re: " ALL " as dialog list - by blackwave - 02.03.2011, 22:42
Re: " ALL " as dialog list - by Lorrden - 02.03.2011, 22:48
Re: " ALL " as dialog list - by blackwave - 03.03.2011, 15:43
Re: " ALL " as dialog list - by Lorrden - 03.03.2011, 18:15
Re: " ALL " as dialog list - by blackwave - 03.03.2011, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)