new dialog styles with formatting
#2

Look at the examples in the RC3 filterscripts.

pawn Код:
TabListDialogTest(playerid)
{
      new listitems[] =
      "Deagle\t$5000\t100\n" \
      "Sawnoff\t$5000\t100\n" \
      "Pistol\t$1000\t50\n" \
      "M4\t$10000\t100\n" \
      "MP5\t$7500\t200\n" \
      "Grenade\t$500\t1\n" \
      "Parachute\t$10000\t1\n" \
      "Lorikeet\t$50000\t500\n";

      ShowPlayerDialog(playerid,2,DIALOG_STYLE_TABLIST,"Buy Weapon",listitems,"Select","Cancel");
}

//-------------------------------------------------

TabListHeadersDialogTest(playerid)
{
      new listitems[] =
      "Weapon\tPrice\tAmmo\n" \
      "Deagle\t$5000\t100\n" \
      "Sawnoff\t$5000\t100\n" \
      "Pistol\t$1000\t50\n" \
      "M4\t$10000\t100\n" \
      "MP5\t$7500\t200\n" \
      "Grenade\t$500\t1\n" \
      "Parachute\t$10000\t1\n" \
      "Lorikeet\t$50000\t500\n";

      ShowPlayerDialog(playerid,2,DIALOG_STYLE_TABLIST_HEADERS,"Buy Weapon",listitems,"Select","Cancel");
}
So just use tab, once you put the correct dialog style.

pawn Код:
format(string, sizeof(string), "Weapon Name\tWeapon ID\n%s\t%d\n%s\t%d\n%s\t%d", weapinfo[0][weapname], weapinfo[0][weapid], weapinfo[1][weapname], weapinfo[1][weapid], weapinfo[02[weapname], weapinfo[02[weapid]);
with DIALOG_STYLE_TABLIST_HEADERS
Reply


Messages In This Thread
new dialog styles with formatting - by BeckzyBoi - 30.03.2015, 11:25
Re: new dialog styles with formatting - by Kar - 30.03.2015, 11:41
Re: new dialog styles with formatting - by rootcause - 30.03.2015, 11:43
Re: new dialog styles with formatting - by BeckzyBoi - 30.03.2015, 12:27

Forum Jump:


Users browsing this thread: 1 Guest(s)