16.07.2013, 19:12
Idea is : 1st Dialog shows, select item, then shows 2nd Dialog to select item.
Problem : 1st Dialog shows, but 2nd Dialog not.
1st Dialog
Problem : 1st Dialog shows, but 2nd Dialog not.
1st Dialog
PHP код:
case DIALOG_SHOP_BUY:
{
if(response)
{
new a[5000],b[250];
ItemChosen[playerid] = listitem;
for(new i = 0; i < MAX_ITEMS; i++)
{
format(b,sizeof(b),"%s [ Turima : %d ] = %d %s \n", GetItemName(i), pInfo[playerid][daiktai][i], ItemPrice(i,ItemChosen[playerid]), GetItemName(ItemChosen[playerid]));
strcat(a,b);
}
ShowPlayerDialog(playerid,DIALOG_SHOP_SELL,DIALOG_STYLE_LIST, "Shop", a,"Pirkti","Iљeiti" );
}
return 1;
}
PHP код:
new a[5000],b[250];
ItemChosen[playerid] = listitem;
for(new i = 0; i < MAX_ITEMS; i++)
{
format(b,sizeof(b),"%s [ Turima : %d ] = %d %s \n", GetItemName(i), pInfo[playerid][daiktai][i], ItemPrice(i,ItemChosen[playerid]), GetItemName(ItemChosen[playerid]));
strcat(a,b);
}
ShowPlayerDialog(playerid,DIALOG_SHOP_SELL,DIALOG_STYLE_LIST, "Shop", a,"Pirkti","Iљeiti" );