03.04.2013, 15:31
(
Последний раз редактировалось SequenceCuz; 04.04.2013 в 06:02.
)
Code that i gave at began it already worked fine man
stock ShowInventoryBag(playerid)
{
new fingbag = 0;
new things[1024];
//new bags[1024];
gItemList="";
for(new i = 0; i < sizeof(BgsCreate); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, BgsCreate[i][pX], BgsCreate[i][pY], BgsCreate[i][pZ]))
{
for(new item;item<MAX_ITEMS;item++)
{
if(fingbag == 0)
{
fingbag = 1;
if(!strlen(_GetItemNamePVar(i,item))||!_GetItemAmountPVar(i,item))continue;
format(gItemList,sizeof(gItemList),"%s\n%d\t\t%s",gItemList,_GetItemAmountPVar(i,item),_GetItemNamePVar(i,item));
}
}
}
}
format(gItemList,sizeof(gItemList),"Amount\t\tItem%s",gItemList);
format(things,sizeof(things),"{00FF80}Money Backpack");
//format(things,sizeof(things),"{00FF00}КСБАТГР [¤ЗТБЁШ %d/%d]",PlayerInfo[playerid][pBagu],PlayerInfo[playerid][pBagt]);
ShowPlayerDialog(playerid,INV_DIALOG_ID,DIALOG_STYLE_LIST,things,gItemList,"гЄй","ВЎаЕФЎ");
SetPVarInt(playerid,"PUSINGDIALOG",1);
}