Help fast
#5

There is an extra closed bracket. If the dialog was not found, you must return 0 so it will search in other scripts (if any). Replace the last 4 lines
pawn Код:
}
}
return 1;
}
with:
pawn Код:
default: return 0;
    }
    return 1;
}
So basically the format is:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch (dialogid)
    {
        case ...:
        {
            // code..
        }
        case ...:
        {
            // code..
        }
        ...
        default: return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Help fast - by POL_george - 26.11.2016, 15:17
Re: Help fast - by Alvitr - 26.11.2016, 15:24
Re: Help fast - by Konstantinos - 26.11.2016, 15:24
Re: Help fast - by POL_george - 26.11.2016, 15:47
Re: Help fast - by Konstantinos - 26.11.2016, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)