24.11.2014, 17:37
Need a little be of help, i am currently working on a OnDialogResponse, and i have everything working, but i have it set out like this
(this is not the real code from my script)
(this is not the real OnDialogResponse out of my script), I wanted it so when i pressed on the DialogResponse it would do something, like lets say set a check point or something, if you know what i mean and know how to help me, please do post, i would be grateful! thank you!
Код:
CMD:test(playerid, params[])
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Blah", "Blah", "Select", "Close");
return 1;
{
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid == 0)
{
case 1:
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Blah blah", "Blah blah\n", "Select", "Close");
}
case 1:
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Blah blah", "Blah blah\n", "Select", "Close");
}
case 2:
{
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Blah blah", "Blah blah\n", "Select", "Close");
}
}
}
}
}

