new coordsstring[900]; new title[900]; new slots = PlayerInfo[targetid][pSlots]; new slotsfree = PlayerInfo[targetid][pSlotsFree]; new matches = PlayerInfo[playerid][pMatches]; new net = PlayerInfo[targetid][pFishingNet]; if(PlayerInfo[playerid][pFishingNet] > 0) { format(coordsstring, sizeof coordsstring, "%d\tCatching Net",net); return 1; } if(PlayerInfo[playerid][pMatches] > 0) { format(coordsstring, sizeof coordsstring, "%d\tMatches",matches); return 1; } format(title, sizeof title, "Backpack Inventory [%d/%d]",slotsfree,slots); ShowPlayerDialog(playerid, BACKPACK, DIALOG_STYLE_LIST, title, coordsstring, "Select", "Close"); |
new coordsstring[900];
new title[900];
new slots = PlayerInfo[targetid][pSlots];
new slotsfree = PlayerInfo[targetid][pSlotsFree];
switch(PlayerInfo[playerid][pFishingNet])
{
case 0: break;
default : format(coordsstring,sizeof(coordsstring),"%s\nFishing Nets : %d",coordsstring,PlayerInfo[playerid][pFishingNet]);
}
switch(PlayerInfo[playerid][pMatches])
{
case 0: break;
default : format(coordsstring,sizeof(coordsstring),"%s\nMatches : %d",coordsstring,PlayerInfo[playerid][pMatches]);
}
format(title, sizeof title, "Backpack Inventory [%d/%d]",slotsfree,slots);
ShowPlayerDialog(playerid,BACKPACK,DIALOG_STYLE_LIST,title,coordsstring,"OK","");
public dynamicinventory(playerid,targetid) { new coordsstring[900]; new title[900]; new slots = PlayerInfo[targetid][pSlots]; new slotsfree = PlayerInfo[targetid][pSlotsFree]; switch(PlayerInfo[playerid][pFishingNet]) { case 0: return 0; default : format(coordsstring,sizeof(coordsstring),"%s\nFish ing Nets : %d",coordsstring,PlayerInfo[playerid][pFishingNet]); } switch(PlayerInfo[playerid][pMatches]) { case 0: return 0; default : format(coordsstring,sizeof(coordsstring),"%s\nMatc hes : %d",coordsstring,PlayerInfo[playerid][pMatches]); } format(title, sizeof title, "Backpack Inventory [%d/%d]",slotsfree,slots); ShowPlayerDialog(playerid,BACKPACK,DIALOG_STYLE_LI ST,title,coordsstring,"OK",""); return 1; } |