25.08.2011, 21:18
Good afternoon SAMP users!
Heres is my DIALOG_LOGIN that is located under OnDialogResponse
Im trying to make it load the string in the script files of Skin.
But, its not loading it!
It saves it correctly, but it just doesn't load the skin once i log in.
Help please?
Heres is my DIALOG_LOGIN that is located under OnDialogResponse
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]);
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
}
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 1;
}
But, its not loading it!
It saves it correctly, but it just doesn't load the skin once i log in.
Help please?