Dialog don`t appear
#1

Idea is : 1st Dialog shows, select item, then shows 2nd Dialog to select item.

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 
0MAX_ITEMSi++)
                {
                       
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 
0MAX_ITEMSi++)
                {
                       
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" ); 
Reply
#2

Your 'a' size is too long. try reducing it.
Reply
#3

Thanks very much, it works P
Reply
#4

Quote:
Originally Posted by DreDasLT
Посмотреть сообщение
Thanks very much, it works P
Anytime.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)