Dialog list bug
#3

pawn Код:
...
            if(IsPlayerConnected(i))//checking if player is connected else nothing
            {

               ShowPlayerDialog(i, 1, DIALOG_STYLE_LIST, "what floor do you want?", "Ground floor \nFirst Floor \nSecond Floor \nThirdFloor \nFourth Floor \nFifth Floor \nSixthFloor \nSeventh Floor \nEighth Floor \nNineth Floor \nTenthfloor \nEleventh Floor \nTwelefth Floor \nThirteenth Floor \nFourteenth Floor \nFifteenth Floor \nSixteenth Floor \nSeventeenth Floor \nEighteenth Floor \nNineteenth Floor \nRoof", "Select", "Cancel");
               return 1;//<---

            }
...
You are returning inside a loop, which will stop the loop. So as soon you have shown the dialog to 1 person, it'll stop showing it to other players. Just remove the "return 1;" and it should work as you want it to.
Reply


Messages In This Thread
Dialog list bug - by vvhy - 19.03.2012, 17:33
Re: Dialog list bug - by vvhy - 19.03.2012, 20:24
Re: Dialog list bug - by Mikkel_Pedersen - 19.03.2012, 21:36
Respuesta: Dialog list bug - by Vladeksh - 19.03.2012, 21:50
Re: Dialog list bug - by vvhy - 19.03.2012, 23:12

Forum Jump:


Users browsing this thread: 1 Guest(s)