Need help with OnPlayerRequestClass
#3

Quote:
Originally Posted by TheLazySloth
Посмотреть сообщение
new Skin = GetPVarInt(playerid,"Skin");

Skin++;
if(0 > Skin || Skin >= 300) Skin = 0;

SetPVarInt(playerid, "Skin", Skin);

SetPlayerSkin(playerid, GetPVarInt(playerid,"Skin"));
It crashed my PAWNO. Okay so here is what I have already to SAVE my skins:

pawn Код:
public SaveStats()
{
dUserSetINT(PlayerName(i)).("Skin", GetPVarInt(i, "Skin"));
}

pawn Код:
public OnPlayerDisconnect()
{
dUserSetINT(PlayerName(playerid)).("Skin",GetPlayerSkin(playerid));
}

Here is my code I want to add in now:
pawn Код:
SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin"));
I want it so I when it's class/skin selection screen, it will start at the last skin they chose and people can choose each time. But the last skin they chose will each time show first. Any help to do this?
Reply


Messages In This Thread
Need help with OnPlayerRequestClass - by TheMightyEddy - 19.04.2012, 04:54
Re: Need help with OnPlayerRequestClass - by TheLazySloth - 19.04.2012, 05:23
Re: Need help with OnPlayerRequestClass - by TheMightyEddy - 19.04.2012, 13:53

Forum Jump:


Users browsing this thread: 3 Guest(s)