15.05.2012, 10:12
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 -
and outcome is this -
But i want to remaki it to dialog_style_msgbox
Code:
and outcome is this
Items is saving in file in that order
anyone can help me to get it to dialog?
Thanks
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;
}
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;
}
Items is saving in file in that order
Код:
Medkit4Armour3Mask3
Thanks