problem in /newbie chat
#1

i have problem in my script
Код:
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;
}
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
Reply


Messages In This Thread
problem in /newbie chat - by Imbalo - 17.03.2017, 08:28
Re: problem in /newbie chat - by Logic_ - 17.03.2017, 08:38
Re: problem in /newbie chat - by Imbalo - 17.03.2017, 08:45
Re: problem in /newbie chat - by Logic_ - 17.03.2017, 08:51
Re: problem in /newbie chat - by SyS - 17.03.2017, 08:57
Re: problem in /newbie chat - by Imbalo - 17.03.2017, 09:25
Re: problem in /newbie chat - by Imbalo - 17.03.2017, 10:06
Re: problem in /newbie chat - by Toroi - 17.03.2017, 10:13
Re: problem in /newbie chat - by Imbalo - 17.03.2017, 10:34
Re: problem in /newbie chat - by SyS - 17.03.2017, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)