11.11.2010, 17:34
new i, weaponid, ammo;
new string[212];
new gunname[200];
for (i=0; i<13; i++)
{
GetPlayerWeaponData(playerid,i,weaponid,ammo);
GetWeaponNameEx(i, gunname, sizeof(gunname));
format(string, sizeof string,"%s\n", gunname);
}
ShowPlayerDialog(playerid, wdcd1, DIALOG_STYLE_LIST,"my weapons",string, "ok", "Cancel");
Or
new playername[MAX_PLAYER_NAME];
new string[128];
for(new i;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, playername, MAX_PLAYER_NAME);
format(string, sizeof string,"\n%d %s\n",i,playername);
}
}
ShowPlayerDialog(playerid, wdcd1, DIALOG_STYLE_LIST,"PlayersLIST",string, "ok", "Cancel");
Can only display a,
How can I show all?
new string[212];
new gunname[200];
for (i=0; i<13; i++)
{
GetPlayerWeaponData(playerid,i,weaponid,ammo);
GetWeaponNameEx(i, gunname, sizeof(gunname));
format(string, sizeof string,"%s\n", gunname);
}
ShowPlayerDialog(playerid, wdcd1, DIALOG_STYLE_LIST,"my weapons",string, "ok", "Cancel");
Or
new playername[MAX_PLAYER_NAME];
new string[128];
for(new i;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, playername, MAX_PLAYER_NAME);
format(string, sizeof string,"\n%d %s\n",i,playername);
}
}
ShowPlayerDialog(playerid, wdcd1, DIALOG_STYLE_LIST,"PlayersLIST",string, "ok", "Cancel");
Can only display a,
How can I show all?