25.01.2019, 15:03
Ok, i'm stuck like a stupid here, problem is because me and DIALOG_STYLE_TABLIST_HEADERS are not friends.
Basically, i have a bounty system on my server, and i wanna show players with bounty in the dialog.
Playername | Bounty ammount | Location.
I did in this way:
But it's surely wrong, only with this type of dialogs i've always problems! Thanks.
Basically, i have a bounty system on my server, and i wanna show players with bounty in the dialog.
Playername | Bounty ammount | Location.
I did in this way:
pawn Code:
foreach(new i : Player)
{
if(Player[i][Bounty] > 0)
{
count++;
format(string, sizeof(string), "%s (%d) | Bounty: "GREEN"%s", ReturnPlayerName(i), i, formatInt(Player[i][Bounty]));
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_TABLIST_HEADERS, "Caption", "Player\tBounty\tLocation\n\"%s (%d)"\t"%s"\t"%s"\n\",
"Button 1", "Button 2");
}
}