help DIALOG_STYLE_LIST Inside LIST
#2

Try this:

First one:
pawn Код:
new string[512];
new gunname[200];
for (i=0; i<13; i++)
{
    GetPlayerWeaponData(playerid,i,weaponid,ammo);
    GetWeaponNameEx(i, gunname, sizeof(gunname));
    format(string, sizeof string,"%s%s\n", string,gunname);
}
ShowPlayerDialog(playerid, wdcd1, DIALOG_STYLE_LIST,"my weapons",string, "ok", "Cancel");
Second one:
pawn Код:
new playername[MAX_PLAYER_NAME];
new string[2048];
for(new i=0;i<MAX_PLAYERS;i++)
{
    if(IsPlayerConnected(i))
    {
        GetPlayerName(i, playername, MAX_PLAYER_NAME);
        format(string, sizeof string,"%s%d.) %s\n",string,i,playername);
    }
}
ShowPlayerDialog(playerid, wdcd1, DIALOG_STYLE_LIST,"PlayersLIST",string, "ok", "Cancel");
Hope it works.
Greetz.
Reply


Messages In This Thread
help DIALOG_STYLE_LIST Inside LIST - by 435076378 - 11.11.2010, 17:34
Re: help DIALOG_STYLE_LIST Inside LIST - by Jeffry - 11.11.2010, 17:49
Re: help DIALOG_STYLE_LIST Inside LIST - by 435076378 - 11.11.2010, 17:54
Re: help DIALOG_STYLE_LIST Inside LIST - by Jeffry - 11.11.2010, 18:04
Re: help DIALOG_STYLE_LIST Inside LIST - by TheXIII - 11.11.2010, 18:14

Forum Jump:


Users browsing this thread: 2 Guest(s)