17.03.2017, 08:28
i have problem in my script
but the output in Game this :
[Question] Callaghane Geraldan : hai.
[Answer] Callaghane Geraldan : hai.
they come out with the same
I want them out of the one in accordance with our selection in the dialog
example:
if i say /n = [Question] Callaghane Geraldan : hai.
others respond to a message I like this
other player say /n = [Answer] Jenifer Abigail : hai too.
can you help me
# sorry for my bad english
Код:
CMD:n(playerid, params[]) { ShowPlayerDialog(playerid, DIALOG_NEWBIE, DIALOG_STYLE_LIST, "{FF0000}Newbie Chat", "{FF0000}1. {FFFFFF}Question\n{FF0000}2. {FFFFFF}Answer", "Choose", "Close"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_NEWBIE) { if(!response)return 0; if(response) { if(listitem == 0)return ShowPlayerDialog(playerid, Dialogquestion, DIALOG_STYLE_INPUT, "Change {FF0000}Question", "Enter your Question here :", "Enter", "Back"); if(listitem == 1)return ShowPlayerDialog(playerid, Dialoganswer, DIALOG_STYLE_INPUT, "Change {FF0000}Answer", "Enter your Answer here :", "Enter", "Back"); } } if(dialogid == Dialogquestion) { if(!response)return ShowPlayerDialog(playerid, DIALOG_NEWBIE, DIALOG_STYLE_LIST, "{FF0000}Newbie Chat", "{FF0000}1. {FFFFFF}Question\n{FF0000}2. {FFFFFF}Answer", "Choose", "Close"); if(response) { if(!Newbie_status) return SendClientMessage(playerid, COLOR_WHITE, "{0000CD}[SERVER]: {FFFFFF}Newbie chat is disabled."); new question[200]; format(question, sizeof(question),"{87CEEB}[Question] %s : %s", GetPlayerNameEx(playerid), inputtext); SendClientMessageToAll(-1, question); } } if(dialogid == Dialoganswer) { if(!response)return ShowPlayerDialog(playerid, DIALOG_NEWBIE, DIALOG_STYLE_LIST, "{FF0000}Newbie Chat", "{FF0000}1. {FFFFFF}Question\n{FF0000}2. {FFFFFF}Answer", "Choose", "Close"); if(response) { if(!Newbie_status) return SendClientMessage(playerid, COLOR_WHITE, "{0000CD}[SERVER]: {FFFFFF}Newbie chat is disabled."); new answer[200]; if(IsPlayerAdmin (playerid)) format(answer, sizeof(answer),"{87CEEB}[Answer] Admin %s : %s", GetPlayerNameEx(playerid), inputtext); else format(answer, sizeof(answer),"{87CEEB}[Answer]%s : %s", GetPlayerNameEx(playerid), inputtext); SendClientMessageToAll(-1, answer); } } return 1; }
[Question] Callaghane Geraldan : hai.
[Answer] Callaghane Geraldan : hai.
they come out with the same
I want them out of the one in accordance with our selection in the dialog
example:
if i say /n = [Question] Callaghane Geraldan : hai.
others respond to a message I like this
other player say /n = [Answer] Jenifer Abigail : hai too.
can you help me
# sorry for my bad english