Setting a players skin
#1

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:

Код:
 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();
                }
            }
        }
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
Reply


Messages In This Thread
Setting a players skin - by slymatt - 16.07.2011, 14:10
Re: Setting a players skin - by slymatt - 16.07.2011, 15:58
Re: Setting a players skin - by slymatt - 16.07.2011, 16:56
Re: Setting a players skin - by TouR - 16.07.2011, 16:58
Re: Setting a players skin - by Shockey HD - 16.07.2011, 17:00
Re: Setting a players skin - by slymatt - 16.07.2011, 17:01
Re: Setting a players skin - by slymatt - 16.07.2011, 17:03
Re: Setting a players skin - by Shockey HD - 16.07.2011, 17:06
Re: Setting a players skin - by slymatt - 16.07.2011, 17:07
Re: Setting a players skin - by Shockey HD - 16.07.2011, 17:10

Forum Jump:


Users browsing this thread: 4 Guest(s)