DIALOG Inventory Help
#1

Okay guys, I am just stuck on this

I need this to be that if a player has this certain object, then that object will appear in the dialog list. But if they do not it will not appear, I do not want an Include file sent to me about this dynamic inventory system, Im working on my own for a reason, just a bit stuck

Quote:

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");

Reply


Messages In This Thread
DIALOG Inventory Help - by Ciandlah - 20.04.2013, 07:44
Re: DIALOG Inventory Help - by Faisal_khan - 20.04.2013, 07:59
Re: DIALOG Inventory Help - by Ciandlah - 20.04.2013, 08:25
Re: DIALOG Inventory Help - by Ciandlah - 20.04.2013, 08:29

Forum Jump:


Users browsing this thread: 2 Guest(s)