SA-MP Forums Archive
Dialogs don't show up - 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: Dialogs don't show up (/showthread.php?tid=326340)



Dialogs don't show up - new121 - 17.03.2012

so when I connect i go straight to the class selection...
pawn Код:
public OnPlayerConnect( playerid )
{
    new
        name[ MAX_PLAYER_NAME ]
    ;

    GetPlayerName( playerid, name, sizeof( name ) );

    if ( BUD::IsNameRegistered( name ) == true )
    {
        SendClientMessage(playerid, 0xFFFFFFAA, " Welcome back to FFS GTA'S Classic TDM ");
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Login","Welcome to FFS Tactical TDM please register","Login","Cancel");
    }
    else
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD,"Register","You are  NOT registered.\r\nPlease type your desired password below:","Login","Cancel");
    }
    return 1;
}



Re: Dialogs don't show up - Kitten - 17.03.2012

Make sure you're dialog isn't mixed with others i would suggest you to do this

pawn Код:
#define DIALOG_LOGIN dialogid
#define DIALOG_REGISTER dialogid



Re: Dialogs don't show up - new121 - 17.03.2012

They arn't mixed, it was working, and I don't remember changing any of the code posted above, and i checked to be sure the ids were correct like five times


Re: Dialogs don't show up - Psymetrix - 17.03.2012

Kitten is right. You may have a filterscript loaded that uses dialogs as well. The dialog IDs will get mixed up. Sometimes showing the wrong dialog and some times showing none a-tall.


Re: Dialogs don't show up - new121 - 17.03.2012

No, because I have a total of four dialogs in my script, and do not use any filterscripts, I have 1 2 3 and 4,

1 is login
2 is register
3 is a voting dialog
4 is a gun selection dialog.

They simply are just not showing up, the voting and gun dialog work fine...