10.05.2016, 21:17
Why this dialog isn't displayed?
Код:
YCMD:event(playerid,params[],help) { new list[256]; if(HasVoted[playerid] == 0) { format(list, sizeof(list), "{8585C2}Terrorists vs Counter Terrorists [TDM]\t %d Votes\n{8585C2}Protect the car [TDM]\n{8585C2}I the Conquer[DM]\n",EventVoteType[0]); ShowPlayerDialog(playerid, DIALOG_EVENTVOTE, DIALOG_STYLE_LIST, "{0080FF}Vote for event type",list, "Next", "Exit"); } else { format(list, sizeof(list), "{8585C2}Terrorists vs Counter Terrorists [TDM]\t %d Votes\n{8585C2}Protect the car [TDM]\n{8585C2}I the Conquer[DM]\n",EventVoteType[0]); ShowPlayerDialog(playerid, DIALOG_EVENTRESULT, DIALOG_STYLE_MSGBOX, "{0080FF}Event Voting Results",list, "Ok", "Exit"); } return 1; }