02.07.2013, 21:56
(
Last edited by EiresJason; 02/07/2013 at 10:35 PM.
)
Quote:
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;
}
}