30.03.2015, 11:41
Look at the examples in the RC3 filterscripts.
So just use tab, once you put the correct dialog style.
with DIALOG_STYLE_TABLIST_HEADERS
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");
}
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]);