29.05.2018, 16:24
So I'm trying to create a responsive dialogue, but for some reason I'm getting the errors 001: expected token: ")", but found ";" and expected token ";", but found ")" on if(dialogid == DIALOG_SUPPRESSION 1)
pawn Код:
#define DIALOG_SUPPRESSION 1;
pawn Код:
CMD:help(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_SUPPRESSION, DIALOG_STYLE_LIST, "Commands", "Suppression System", "Continue", "Cancel");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_SUPPRESSION 1)
{
if(response)
{
ShowPlayerDialog(playerid, DIALOG_SUPPRESSION, DIALOG_STYLE_LIST, "Commands", "Attach\nDeattach", "Continue", "Cancel");
}
return 1;
}}