I have 141 items to add to this list, is there a quicker or better way?
#1

pawn Код:
else if(dialogid == DIALOG_FURNILIST)
{
    if(response == 0)
    {
        return 1;
    }
    switch(listitem)
    {
        case 0:
        {
            DealerOrderFurniture(playerid, 2290, InfPrice(400), 0, 0);
        }
        case 1:
        {
            DealerOrderFurniture(playerid, 14490, InfPrice(200), 0, 0);
        }
        case 2:
        {
            DealerOrderFurniture(playerid, 1794, InfPrice(700), 0, 1);
        }
        case 3:
        {
            DealerOrderFurniture(playerid, 2247, InfPrice(60), 0, 0);
        }
        case 4:
        {
            DealerOrderFurniture(playerid, 2306, InfPrice(125), 1, 2);
        }
        case 5:
        {
            DealerOrderFurniture(playerid, 2073, InfPrice(100), 0, 0);
        }
        case 6:
        {
            DealerOrderFurniture(playerid, 1740, InfPrice(120), 1, 1);
        }
        case 7:
        {
            DealerOrderFurniture(playerid, 1734, InfPrice(130), 0, 0);
        }
        case 8:
        {
            DealerOrderFurniture(playerid, 2100, InfPrice(800), 0, 0);
        }
        case 9:
        {
            DealerOrderFurniture(playerid, 14527, InfPrice(80), 0, 0);
        }
    }
}
Title says all.

Pasting messed up the indentation.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)