Responsive Dialogue
#1

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;
}}
Reply
#2

remove semicolon
Код:
#define DIALOG_SUPPRESSION 1 ; <-remove
Reply
#3

Fixed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)