Player Skin isnt working
#4

Quote:
Originally Posted by amirab
Посмотреть сообщение
where did you changed it's var : PlayerInfo[playerid][pSkin]
i mean you should get player skin to set on it where did you set?
I dont know if i understand your question, but the skin is set as 299 when the player registers, and then it is saved when the player logs out. When he logs in again, the script loads his skin, but somewhy it isnt working.

Quote:
Originally Posted by biker122
Посмотреть сообщение
Ewww... Let me change your /skin command
pawn Код:
CMD:skin(playerid,params[])
{
    pInfo[playerid][pSkin] = GetPlayerSkin(playerid);
    GameTextForPlayer(playerid,"~r~Skin Saved!",3000,5);
    return 1;
}
Explaination: Now, if you execute the command /skin, it'll save your current skin to pInfo[playerid][pSkin].
If you want the same skin to be used after relogging and stuffs, go to your OnPlayerDisconnect and add
pawn Код:
INI_WriteInt(File,"Skin",pInfo[playerid][pSkin]);
and load it when he connects.
Thats not what i want. My /skin command isnt wrong, i just made it to test the PlayerInfo[playerid][pSkin], it was made to set the skin, not to save it.

When the player logs out there is already there is already a function for saving its data, including the skin
pawn Код:
// Saving it
INI_WriteInt(playerFile,"Skin",PlayerInfo[playerid][pSkin]);
// Loading it
INI_Int("Skin",PlayerInfo[playerid][pSkin]);
as i said before, the problem isnt on loading or saving the skin, it is on setting it after login.
Reply


Messages In This Thread
Player Skin isnt working - by lukas_loky - 13.07.2014, 07:52
Re: Player Skin isnt working - by amirab - 13.07.2014, 08:39
Re: Player Skin isnt working - by biker122 - 13.07.2014, 08:44
Re: Player Skin isnt working - by lukas_loky - 13.07.2014, 20:03
Re: Player Skin isnt working - by lukas_loky - 14.07.2014, 04:44

Forum Jump:


Users browsing this thread: 3 Guest(s)