09.07.2012, 23:42
This is my code
i want to make an inventory dialog system like: When you have bombs, it add the bombs item, etc, i tried everything but cant make it happen 
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/usecase", cmdtext, true) == 0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Select your item", "", "Select", "Cancel"); if(gMine[playerid] > 0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Select your item", "Mine", "Select", "Cancel"); } if(gBomb[playerid] > 0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Select your item", "\nbomb", "Select", "Cancel"); } return 1; }

