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
#2

Anyone? =(
Reply
#3

Im so stuck with this ive been trying everything all day lol
Reply
#4

make sure you dont use onether SetPlayerSkin at OnPlayerSpawn
Reply
#5

Quote:
Originally Posted by slymatt
Посмотреть сообщение
Anyone? =(
If we knew we would help, but clearly we also don't know. Read the posting rules.

Quote:

b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes.
You can bump topics when the last reply is at least 48 hours old, and it needs to have useful information about your problem.

The Rules
Reply
#6

I didnt know that waas bumping i thought bumping was when you actually say bump
Reply
#7

and tour nope i dont does every other spawn apart from myn have to be gone?
Reply
#8

Quote:
Originally Posted by slymatt
Посмотреть сообщение
I didnt know that waas bumping i thought bumping was when you actually say bump
Nope, BUMP, UP, Help Me, Guys can someone please help me! All of that is bumping. A comment brings your post to the top. Bumping brings it up by commenting.

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 11 seconds.

Also, when you do two post like that, try to use the Multi-Quote option. Allows you to grab to quotes and put it in the same post. Or, just edit your post
Reply
#9

Alright sorry about that i know for next time now.
Reply
#10

Quote:
Originally Posted by slymatt
Посмотреть сообщение
Alright sorry about that i know for next time now.
Very well, if i knew the answer, i would of course help you. But sadly i do not have an answer. Good luck on your problem. And remember to always try to solve the problem on your own. Put some effort into it. When you reach the point where head is about to fall off, then ask the forums. :] Good luck.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)