25.03.2015, 16:15
I don't really know if this is bug or proper working but in my opinion, somebody from dev-team should look at this (code presented below is from "test_cmds").
Function (I cut "listitems" to 3 rows):
And now everything works good, but what happens when I remove two columns from 3'rd row?
Nothing. Everything still works good. But what will happen when I do this same for first row?
Now I won't see other two columns for row 2 and 3 :/ To fix this just add "\t \t " to first row, but I don't think it is good solution. It should work differently :/
Function (I cut "listitems" to 3 rows):
Код:
TabListHeadersDialogTest(playerid) { new listitems[] = "Deagle\t$5000\t100\n" \ "Sawnoff\t$5000\t100\n" \ "Pistol\t$1000\t50"; ShowPlayerDialog(playerid,2,DIALOG_STYLE_TABLIST,"Buy Weapon",listitems,"Select","Cancel"); }
Код:
new listitems[] = "Deagle\t$5000\t100\n" \ "Sawnoff\t$5000\t100\n" \ "Pistol";
Код:
new listitems[] = "Deagle\n" \ "Sawnoff\t$5000\t100\n" \ "Pistol\t$1000\t50";