Wy is this dialog popping up now
#1

Why does the "Tutorial" dialog pop up when i click quit on the login dialog


pawn Код:
case DIALOG_LOGIN:
        {
            new Tutorial = PlayerInfo[ playerid ][ pTutorial ];
            if(Tutorial == 0)
            {
                ShowPlayerDialog(playerid, DIALOG_TUTORIAL, DIALOG_STYLE_LIST,"Tutorial - What Does OOC Mean","Test\nTest2\nTest3","Select","Cancel");
            }
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    new
                        tmp2[ 256 ],
                        playername2[ MAX_PLAYER_NAME ]
                    ;
                    GetPlayerName(playerid, playername2, sizeof(playername2));
                    format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~g~%s", playername2);
                    GameTextForPlayer(playerid, tmp2, 5000, 1);
                    SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid);
                    GivePlayerCash(playerid, PlayerInfo[playerid][pCash]);
                    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","You have entered an incorrect password.\nType your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }
Thank You


Please Help Me Please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)