Skin not setting upon login.
#1

pawn Код:
SetPlayerVirtualWorld(playerid, LastVW[playerid]);
            SetPlayerInterior(playerid, LastInt[playerid]);
            SetSpawnInfo(playerid, 0, skin, LastX[playerid], LastY[playerid], LastZ[playerid]+0.5,0, 0,0,0,0,0,0);
            SpawnPlayer(playerid);
            SetPlayerSkin(playerid, skin);
I only added the SetPlayerSkin afterwards, I debugged it and it definitely gets the correct skin from skin.

I'm extremely confused, adds CJ skin.
Reply
#2

It sets the CJ skin because the skin variable is returning the value 0.Check if you are updating the variable properly.
Reply
#3

You need use a SetPlayerSkin in OnPlayerSpawn public
Reply
#4

It crashes the player when using SetPlayerSkin in OnPlayerSpawn
Reply
#5

Quote:
Originally Posted by Dokins
Посмотреть сообщение
It crashes the player when using SetPlayerSkin in OnPlayerSpawn
Try using different coordinates for spawn and then trying setting the skin on spawn
Reply
#6

It saves the players last coordinates and uses them to spawn the player.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)