16.07.2011, 14:10
I have created my login and register script. on register the script saves their file. in the file it saves the skin that i have selected which is 299 for when they start and when they disconnect the skin will be saved again, the thing is.... when i register the skin does save but when i login i still have CJ's skin what do i change? this is where on login the skin should change:
The bigger text is where i have set the skin..... is that all i need to do or do i have to cange it somewhere else because i just cant figure it out
Thanks for the help.
Regards Matthew
Код:
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(!strlen(inputtext)) {
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, ""WHITE"Login",""RED"You have entered an invalid password.\n"WHITE"Type your password below to login.","Login","Quit");
}
if(INI_Open(getINI(playerid))) {
INI_ReadString(PlayerInfo[playerid][Pass],"Pass",20);
if(strcmp(inputtext,PlayerInfo[playerid][Pass],false)) {
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, ""WHITE"Login",""RED"You have entered an incorrect password.\n"WHITE"Type your password below to login.","Login","Quit");
}
SetPlayerScore(playerid, INI_ReadInt("Score"));
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, INI_ReadInt("Cash"));
SetPlayerSkin(playerid, INI_ReadInt("Skin"));
PlayerInfo[playerid][Admin] = INI_ReadInt("Admin");
INI_Close();
}
}
}
Thanks for the help.
Regards Matthew


