Problem with FS which have a Dialog System
#8

Like people have said, in ALL of your other scripts return 0 if the dialog is not found. When OnDialogResponse reaches a "return 1" it stops processing other dialogs across all loaded scripts.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if( dialogid == REG_DIALOG )
    {
        //dialog was found return 1
        return 1;
    }

    //more dialogs...

    //no dialogid matches, return 0 so other scripts can process this dialog
    return 0;
}
You must also do this in ALL loaded scripts (including the GM) or it will cause your dialogs to just close when you click them. I'm sure there's a note about that on the wiki.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)