10.11.2013, 08:02
Hello,
I am trying to print this values into a dialog like this;
This works great!
BUT... Right now the values from 'Companies' will show as 0 or 1.
i want the 0 to be shown as "For Sale" and the 1 to be shown as "Sold". I know that i need to use %s for that but i dont know how to format into a format.
Answers would be just awesome ...thanks in advance
I am trying to print this values into a dialog like this;
pawn Код:
format(strings,sizeof(strings), "CrazyCock\t%d\nPizzaStack\t%d\nCluckinBell\t%d",Companies[0][Sold],Companies[1][Sold],Companies[2][Sold]);
ShowPlayerDialog(playerid,BANK_DIALOGID,DIALOG_STYLE_LIST,"Company's sold or not",strings,"Buy","Exit");
BUT... Right now the values from 'Companies' will show as 0 or 1.
i want the 0 to be shown as "For Sale" and the 1 to be shown as "Sold". I know that i need to use %s for that but i dont know how to format into a format.
Answers would be just awesome ...thanks in advance