Posts: 2,938
Threads: 162
Joined: May 2010
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
Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
It's as simple as that? I will try it out. Thanks