18.03.2012, 05:03
Replace the playerid in this
with "i"
And remove one bracket above return 1; at the OnDialogResponse function.
Code:
ShowPlayerDialog(playerid, 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");
Code:
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");