12.04.2013, 01:35
You can define the dialog IDs, it may be easier to read the code this way.
Just do:
Just do:
pawn Код:
#define DIALOG_TEST 1
// You define the dialog and then the 1 is the dialog ID
ShowPlayerDialog(playerid, DIALOG_TEST, DIALOG_STYLE_MSG, "This is a test!", "Next", "Close");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_TEST:
{
//CODE HERE
}
}
return 1;
}