Whats the difference between both codes?
PHP Code:
enum
{
DIALOG_TEST
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_TEST) { //code }
return 1;
}
PHP Code:
#define DIALOG_TEST 1
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_TEST) { //code }
return 1;
}