Dialog Ids getting mixed up with Gamemode & FS.
#8

Quote:
Originally Posted by shadowdog
View Post
Could you post a piece of your login? if it's not in there, I'm afraid I cannot help you.
preferably the whole case of DIALOG_LOGIN

Ok Heres the OnDialogResponse for the login.

pawn Code:
case DIALOG_LOGIN:
        {
            new Float:x, Float:y, Float:z, Float:angle, inter, vw;
            x = PlayerInfo[playerid][pLastX];
            y = PlayerInfo[playerid][pLastY];
            z = PlayerInfo[playerid][pLastZ];
            angle = PlayerInfo[playerid][pLastA];
            inter = PlayerInfo[playerid][pInt];
            vw = PlayerInfo[playerid][pVW];
           
           
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    //ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
                    SetPlayerPos(playerid,x,y,z);
                    SetPlayerFacingAngle(playerid,angle);
                    SetPlayerInterior(playerid,inter);
                    SetPlayerVirtualWorld(playerid,vw);
                    SpawnPlayer(playerid);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
Reply


Messages In This Thread
Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 02.07.2013, 19:47
Re: Dialog Ids getting mixed up with Gamemode & FS. - by jueix - 02.07.2013, 20:05
Re: Dialog Ids getting mixed up with Gamemode & FS. - by shadowdog - 02.07.2013, 20:06
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 02.07.2013, 20:33
Re: Dialog Ids getting mixed up with Gamemode & FS. - by shadowdog - 02.07.2013, 20:55
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 02.07.2013, 21:12
Re: Dialog Ids getting mixed up with Gamemode & FS. - by shadowdog - 02.07.2013, 21:36
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 02.07.2013, 21:56
Re: Dialog Ids getting mixed up with Gamemode & FS. - by shadowdog - 02.07.2013, 22:38
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 02.07.2013, 22:46
Re: Dialog Ids getting mixed up with Gamemode & FS. - by shadowdog - 03.07.2013, 12:42
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 03.07.2013, 13:43
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 04.07.2013, 13:13
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 05.07.2013, 14:17
Re: Dialog Ids getting mixed up with Gamemode & FS. - by drichie - 05.07.2013, 14:28
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 05.07.2013, 14:36
Respuesta: Re: Dialog Ids getting mixed up with Gamemode & FS. - by Gryphus One - 05.07.2013, 17:30
Re: Respuesta: Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 05.07.2013, 17:45
Respuesta: Dialog Ids getting mixed up with Gamemode & FS. - by Gryphus One - 05.07.2013, 17:58
Re: Respuesta: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 05.07.2013, 18:27
Respuesta: Dialog Ids getting mixed up with Gamemode & FS. - by Gryphus One - 06.07.2013, 16:09
Re: Respuesta: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 06.07.2013, 16:44
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Konstantinos - 06.07.2013, 17:04
Re: Dialog Ids getting mixed up with Gamemode & FS. - by EiresJason - 06.07.2013, 20:27
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Swisher - 14.01.2014, 01:47
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Emmet_ - 14.01.2014, 01:53
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Swisher - 14.01.2014, 01:59
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Swisher - 14.01.2014, 02:05
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Emmet_ - 14.01.2014, 02:07
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Swisher - 14.01.2014, 02:10
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Swisher - 14.01.2014, 02:14
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Swisher - 14.01.2014, 02:21
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Pottus - 14.01.2014, 02:22
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Swisher - 14.01.2014, 02:28
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Pottus - 14.01.2014, 02:39
Re: Dialog Ids getting mixed up with Gamemode & FS. - by Swisher - 14.01.2014, 02:40

Forum Jump:


Users browsing this thread: 2 Guest(s)