13.08.2014, 22:51
Hi, i want put in Dialog a list with itens of player, for example.
I have Item 1, item 2 and item 4;
and i want show, in dialog.
Is only a base of my idea, so don't have script complete, i need only base to create correct, this method is correct?
But, how show in dialog it? with strcat?
I have Item 1, item 2 and item 4;
and i want show, in dialog.
pawn Код:
if(PlayerHaveEagle == 1)
{
format(string,sizeof(string),"Item 1: Eagle (Have)\n");
}
else{
format(string,sizeof(string),"Item 1: Eagle (Don't Have)\n");
}
if(PlayerHaveKnife == 1)
{
format(string,sizeof(string),"Item 1: Knife (Have)\n");
}
else{
format(string,sizeof(string),"Item 1: Knife (Don't Have)\n");
}if(PlayerHaveShotgun == 1)
{
format(string,sizeof(string),"Item 1: ShotGun (Have)\n");
}
else{
format(string,sizeof(string),"Item 1: ShotGun (Don't Have)\n");
}
strcat(str,string);
ShowPlayerDialog(playerid, DialogWeapons, DIALOG_STYLE_LIST, "Chose a weapon to get:", str, "Select", "Cancel");
But, how show in dialog it? with strcat?