Question about dialogs
#1

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:
pawn Код:
switch(listitem)
{

case 1:
{ }

case 2:
{ }
...
}
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.
Reply


Messages In This Thread
Question about dialogs - by barbarbar1 - 24.04.2016, 18:16
Re: Question about dialogs - by HuntingMan - 24.04.2016, 18:26
Re: Question about dialogs - by DTV - 24.04.2016, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)