11.04.2015, 13:53
Quote:
If i want to show the dialog after entering an ammu-nation buying checkpoint, Can it be like this?
|
Quote:
Yes, that's how I made it on my script but I still can't make it to work the same way but with HEADERS :/
|
PHP код:
new listitems[(sizeof (weapinfo) * 16) + 25] = "Weapon Name\tWeapon ID\n";
for (new i; i != sizeof (weapinfo); ++i)
{
format(listitems, sizeof (listitems), "%s%s\t%i\n", listitems, weapinfo[i][weapname], weapinfo[i][weapid]);
}
ShowPlayerDialog(playerid,2,DIALOG_STYLE_TABLIST_HEADERS,"Weapon",listitems,"Select","Cancel");