SA-MP Forums Archive
Responsive Dialogue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Responsive Dialogue (/showthread.php?tid=654480)



Responsive Dialogue - Mo123 - 29.05.2018

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;
}}



Re: Responsive Dialogue - SyS - 29.05.2018

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



Re: Responsive Dialogue - Mo123 - 29.05.2018

Fixed!