Dialog,Help me
#1

Good Morning , I have a problem with dialogue , everything I did as a wiki , and not working ..

So I did the dialogue that when he chooses the direction of the school that he throws a message to congratulate blah blah blah , but when I click OK , do not throw me a message already put me on admin duty , why ?? a dialogue in filterscript ..

Код:
enum
{
    DIALOG_SREDNJA,
    DIALOG_FAX,
}
Код:
public OnPlayerCommandText(playerid, cmdtext[])

if(strcmp(cmdtext, "/flesson", true, 6) == 0)
	{
		ShowPlayerDialog(playerid, DIALOG_FAX, DIALOG_STYLE_LIST, "select direction","Electric\nComputer\nMedical","OK","End");
		return 1;
	}
	if(strcmp(cmdtext, "/slesson", true, 6) == 0)
	{
		ShowPlayerDialog(playerid, DIALOG_SREDNJA, DIALOG_STYLE_LIST, "select direction","Electric\nComputer\nGymnasium\nMedical","OK","End");
		return 1;
	}
	return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOG_FAX)
    {
        if(response) 
        {
            SendClientMessage(playerid, 0x33AA33AA, "You have chosen the right direction , teaching begins!");
        }
        else 
        {
            Kick(playerid);
        }
        return 1; 
    }
    if(dialogid == DIALOG_SREDNJA)
    {
        if(response)
        {
            SendClientMessage(playerid, 0x33AA33AA, "You have chosen the right direction , teaching begins!");
        }
        else
        {
            Kick(playerid);
        }
        return 1;
    }
	return 0;
}
Reply


Messages In This Thread
Dialog,Help me - by Savana221 - 14.05.2016, 08:25
Re: Dialog,Help me - by Recardo - 14.05.2016, 08:38
Re: Dialog,Help me - by oMa37 - 14.05.2016, 08:39
Re: Dialog,Help me - by Savana221 - 14.05.2016, 08:55
Re: Dialog,Help me - by oMa37 - 14.05.2016, 09:25
Re: Dialog,Help me - by Logic_ - 14.05.2016, 09:35
Re: Dialog,Help me - by oMa37 - 14.05.2016, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)