Dialogs don't show up
#1

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

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
Reply
#3

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
Reply
#4

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.
Reply
#5

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)