06.01.2015, 20:36
pawn Код:
CMD:inv(playerid, params[])
{
new string[200];
format(string, sizeof(string),"Ration: %d",PlayerInfo[playerid][pRation]);
ShowPlayerDialog(playerid, 6,DIALOG_STYLE_LIST,"Inventory",string,"OK","EXIT");
return 1;
}
There's a string in that dialogue, there where the contents of the list will be.
HOW DO I: Add another string, to the existing one so there's a list of 2!
For example:
When I go ingame, and type /inv
I get the box titled "Inventory" and it says; Ration: 0
I want it to say:
Ration: 0
Medkit: 0
etc..
So, how do I add another string to the existing one?
I want to add this as another string, what do I have to do?
Do I have to define a new string?
format(string, sizeof(string),"Medkit: %d",PlayerInfo[playerid][pMedkit]);