24.04.2016, 18:16
Hey,
I am scripting furnitures system, and I would like to check what furniture did the player choose from a dialog. Since there are many furnitures, I am looking for a more effective way than doing like this:
Is there any way to do it in another way than checking by case for each furniture? It's up to 15 options! I am looking for a more effective way.
I am scripting furnitures system, and I would like to check what furniture did the player choose from a dialog. Since there are many furnitures, I am looking for a more effective way than doing like this:
pawn Код:
switch(listitem)
{
case 1:
{ }
case 2:
{ }
...
}