PHP код:
new DeadGet[ MAX_PLAYERS ][ MAX_ITEMS ];
new DeadList[ MAX_PLAYERS ][ MAX_ITEMS ];
new DeadQntList[ MAX_PLAYERS ][ MAX_ITEMS ];
ShowLooting( playerid )
{
new subtxt[ 128 ], lootslot;
for( new items; items < MAX_ITEMS; items++)
{
new id = GetDeadID( playerid );
new itemid = PlayerDeadItemID[ items ][ id ];
if( PlayerDeadItemQnt[ items ][ id ] > 0)
{
printf( "%d", items );
DeadGet[ playerid ][ lootslot ] = id;
DeadList[ playerid ][ lootslot ] = itemid;
DeadQntList[ playerid ][ lootslot ] = PlayerDeadItemQnt[ items ][ id ];
format( subtxt, sizeof( subtxt ), "%d\t%s\n", PlayerDeadItemQnt[ items ][ id ], ItemInfo[ itemid ][ Item_Name ]);
ShowPlayerDialog( playerid, 68, DIALOG_STYLE_LIST, "Quantia | Item ", subtxt, "Pegar", "x");
lootslot++;
}
}
return 1;
}
Vocк tem que ponhar a dialog dentro do loop. Se isso nгo funcionar, Nгo saberei te dizer ;/