Convert something to an array.
#2

Try this:

pawn Код:
enum arrayPrices
{
    priceInt,
    priceEmbed[12]
};

new PriceArray[][arrayPrices] =
{
    {11500, "11500"},
    {11501, "11501"}
};
And then use it like this:

pawn Код:
printf("%d", PriceArray[0][priceInt]); // 11500
printf("%d", PriceArray[1][priceInt]); // 11501
Reply


Messages In This Thread
Convert something to an array. - by RedJohn - 11.08.2013, 17:22
Re: Convert something to an array. - by Emmet_ - 11.08.2013, 17:26
Re: Convert something to an array. - by RedJohn - 11.08.2013, 17:29
AW: Convert something to an array. - by Nero_3D - 11.08.2013, 17:45
Re: Convert something to an array. - by RedJohn - 11.08.2013, 17:48
AW: Convert something to an array. - by BigETI - 11.08.2013, 17:52
AW: Convert something to an array. - by Nero_3D - 11.08.2013, 18:00
Re: Convert something to an array. - by RedJohn - 11.08.2013, 18:01
AW: Convert something to an array. - by Nero_3D - 11.08.2013, 18:27
Re: Convert something to an array. - by RedJohn - 11.08.2013, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)