Dynamic dialog problem
#1

Hey guys!

I got the following:

Код:
	while( listInventoryItems( playerid, itemName, itemDesc, itemAmm, idx ) )
 	{
  		format( ilist, sizeof ilist, "{FFFFFF}%s \t %s (Amount: %i)\n", itemName, itemDesc, itemAmm );
  		ShowPlayerDialog(playerid, 789, DIALOG_STYLE_LIST, "Inventory", ilist, "Close", "Close");
     	idx ++;
    }
It works with one object in the inventory, but when I add another object into my inventory I only see the last one.
Why? It's a correct loop right?
Reply


Messages In This Thread
Dynamic dialog problem - by Devix - 18.09.2012, 13:30
Re: Dynamic dialog problem - by blank. - 18.09.2012, 13:32
Re: Dynamic dialog problem - by Devix - 18.09.2012, 14:11
Re: Dynamic dialog problem - by blank. - 18.09.2012, 22:44
Re: Dynamic dialog problem - by Devix - 19.09.2012, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)