Better way
#9

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I think you make things more complicated when you can use something like this:
pawn Код:
enum
{
    ITEM_APPLE,
    ITEM_ORANGE,
    ITEM_BOTTLE_OF_WATER,
    ...
};
then you can use itemid as an integer which would make everything much easier, even in using a switch statement to retrieve the item's name or model etc.
Thank you for your suggestion, but I guess I'll stick to the current way. :P
Reply


Messages In This Thread
Better way - by GoldenLion - 22.10.2016, 11:41
Re: Better way - by Dayvison_ - 22.10.2016, 11:48
Re: Better way - by Kaliber - 22.10.2016, 11:55
Re: Better way - by GoldenLion - 22.10.2016, 12:03
Re: Better way - by Kaliber - 22.10.2016, 12:12
Re: Better way - by GoldenLion - 22.10.2016, 12:14
Re: Better way - by GoldenLion - 22.10.2016, 13:36
Re: Better way - by Konstantinos - 22.10.2016, 13:42
Re: Better way - by GoldenLion - 22.10.2016, 13:55
Re: Better way - by Gammix - 22.10.2016, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)