Dialog help ! I give rep , thanks !!!
#9

pawn Код:
CMD:checkwanted(playerid, params[])
{
    new string[128],pname[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            if(playerAccount[i][WantedLevel] >= 1)
            {
                GetPlayerName(i, pname, sizeof(pname));
                ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Title",string,"Find", "Close");
                format(string, sizeof (string), "[W:%d][ID:%d]%s",playerAccount[i][WantedLevel],i,pname);
                return 1;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Dialog help ! I give rep , thanks !!! - by buburuzu19 - 06.11.2014, 08:05
Re: Dialog help ! I give rep , thanks !!! - by Runn3R - 06.11.2014, 08:29
Re: Dialog help ! I give rep , thanks !!! - by buburuzu19 - 06.11.2014, 08:32
Re: Dialog help ! I give rep , thanks !!! - by Runn3R - 06.11.2014, 08:33
Re: Dialog help ! I give rep , thanks !!! - by BroZeus - 06.11.2014, 08:34
Re: Dialog help ! I give rep , thanks !!! - by buburuzu19 - 06.11.2014, 08:49
Re: Dialog help ! I give rep , thanks !!! - by BroZeus - 06.11.2014, 08:54
Re: Dialog help ! I give rep , thanks !!! - by buburuzu19 - 06.11.2014, 09:03
Re: Dialog help ! I give rep , thanks !!! - by M0HAMMAD - 06.11.2014, 09:03
Re: Dialog help ! I give rep , thanks !!! - by buburuzu19 - 06.11.2014, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)