Player Skin isnt working
#1

After a sucessful login, the script should set the player skin as PlayerInfo[playerid][pSkin], but i have no idea why, it isnt working. It works fine after registering, but not after the login. I've already tried to set the skin at OnPlayerSpawn, and it also isnt working. The problem isnt in the PlayerInfo[playerid][pSkin] because i created a command /skin and it works.
pawn Код:
//WORKS
//after the register
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin],-185.4632,941.8038,15.6317,358, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);

// and the cmd, so the problem isnt [pSkin]
CMD:skin(playerid,params[])
{
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    return 1;
}


//DOESNT WORK
//after the login
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ], PlayerInfo[playerid][LastA], 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); // already tried without this, and changed its position
// SPAWN
public OnPlayerSpawn(playerid)
{
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    return 1;
}
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: 1 Guest(s)