Need a example :)
#3

Thanks, how i can include to this:

pawn Код:
case DIALOG_LOGIN:
        {
            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_WHITE"You have successfully logged in!","Ok","");
                        SpawnPlayer(playerid);
                        SetPlayerColor(playerid, COLOR_WHITE);
                }
                else {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
Need a example :) - by Gooday - 14.01.2012, 12:52
Re: Need a example :) - by Mean - 14.01.2012, 12:58
Re: Need a example :) - by Gooday - 14.01.2012, 13:09
Re: Need a example :) - by Mean - 14.01.2012, 13:10
Re: Need a example :) - by Gooday - 14.01.2012, 13:17
Re: Need a example :) - by Mean - 14.01.2012, 13:21
Re: Need a example :) - by Gooday - 14.01.2012, 13:57
Re: Need a example :) - by Mean - 14.01.2012, 14:08
Re: Need a example :) - by Gooday - 14.01.2012, 14:09
Re: Need a example :) - by Min - 14.01.2012, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)