Bot as normal player
#3

Thx. But do you know how can I make each list item from dialog as listitem option, which would return the info from the player chosen?
pawn Код:
dcmd_allip(playerid, params[])
{
    #pragma unused params
    new string[300];
    foreach(Character, i)
    {
        format(string,sizeof(string),""#red" \n%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","");
}
I've tried the switching on dialog, but it just shows all online Character 'i':
pawn Код:
if(dialogid == IP_DIALOG)
     {
        foreach(Character, i)
        {
            switch(i)
            {
                case 0 .. 500: printf("%s (id: %d)",GetMyName(i),i);
            }
        }
     }
Reply


Messages In This Thread
Bot as normal player - by blackwave - 05.03.2011, 16:08
Re: Bot as normal player - by [L3th4l] - 05.03.2011, 16:12
Re: Bot as normal player - by blackwave - 05.03.2011, 16:44
Re: Bot as normal player - by rjjj - 05.03.2011, 17:32
Re: Bot as normal player - by Gh0sT_ - 05.03.2011, 18:21
Re: Bot as normal player - by rjjj - 05.03.2011, 18:36
Re: Bot as normal player - by blackwave - 05.03.2011, 21:21
Re: Bot as normal player - by Mauzen - 05.03.2011, 21:47
Re: Bot as normal player - by blackwave - 05.03.2011, 22:02
Re: Bot as normal player - by blackwave - 06.03.2011, 11:22

Forum Jump:


Users browsing this thread: 3 Guest(s)