Dialog messup
#1

Hey there again hehe.
Im creating my server and now comes the time when i want to add inventory system in it. Im using THIS system for that.
There is that command who checks player inventory -
pawn Код:
if(!strcmp(cmdtext[1],"myitems",true))
{
  new idx,amount,itemname[MAX_ITEM_NAME];
  new tmp[128];
  while(GetPlayerItemInfo(playerid,idx,itemname,_,amount))
  {
    if(strlen(itemname))
    {
      format(tmp,128,"%s -- %d",itemname,amount);
      SendClientMessage(playerid,0xFFFFFFFF,tmp);
    }
  }
  return 1;
}
and outcome is this -

But i want to remaki it to dialog_style_msgbox
Code:
pawn Код:
if(!strcmp(cmdtext[1],"myitems",true))
    {
      new idx, amount,itemname[MAX_ITEM_NAME];
      new tmp[128];
      while(GetPlayerItemInfo(playerid,idx,itemname,_,amount))
      {
        if(strlen(itemname))
        {
          format(tmp,128,"%s -- %d",itemname,amount);
          ShowPlayerDialog(playerid, INVENTORY, DIALOG_STYLE_MSGBOX, "{6199D4}Inventars.", tmp,"Aizvert", "");
        }
      }
      return 1;
    }
and outcome is this
Items is saving in file in that order
Код:
Medkit4Armour3Mask3
anyone can help me to get it to dialog?
Thanks
Reply


Messages In This Thread
Dialog messup - by bleedis - 15.05.2012, 10:12
Re: Dialog messup - by TzAkS. - 15.05.2012, 10:18
Re: Dialog messup - by bleedis - 15.05.2012, 10:21
Re: Dialog messup - by bleedis - 16.05.2012, 13:28
AW: Dialog messup - by EthanR - 16.05.2012, 13:35
Re: AW: Dialog messup - by bleedis - 16.05.2012, 13:44
Re: Dialog messup - by SuperViper - 16.05.2012, 14:19
Re: Dialog messup - by bleedis - 16.05.2012, 14:28

Forum Jump:


Users browsing this thread: 3 Guest(s)