05.05.2013, 22:10
I'm using FDialog to create dialogs and I just realized that using definitions for the dialogs doesn't work. For example:
The following will display the dialog, but when I click "Yes" it does nothing.
To get it to work, I have to use fDialog(1) instead of fDialog(DIALOG_TEST). Any idea why?
The following will display the dialog, but when I click "Yes" it does nothing.
pawn Код:
#define DIALOG_TEST 1
//OnPlayerConnect
ShowPlayerDialog(playerid, DIALOG_TEST, DIALOG_STYLE_INPUT, "Test", "Test", "Yes", "No");
//later on
fDialog(DIALOG_TEST)
{
if(response)
{
SendClientMessage(playerid, RED, "Hello");
}
return 1;
}