14.05.2016, 08:25
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 ..
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;
}

