SA-MP Forums Archive
player skin help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: player skin help (/showthread.php?tid=417757)



player skin help - blackdragon1 - 22.02.2013

i added save skin in my script but


stock saveuserstats
{

INI_WriteInt(ufile, "pskin", GetPlayerSkin(playerid));


..............

public onplayerrequestclass
{

SetPlayerSkin(playerid, PlayerInfo[playerid][pskin]);


public onplayerdisconnect
{

PlayerInfo[playerid][pskin] = GetPlayerSkin(playerid);


public onplayerconnect
{

PlayerInfo[playerid][pskin] = GetPlayerSkin(playerid);
INI_WriteInt(ufile, "pskin", PlayerInfo[playerid][pskin]);


stock loaduser_data
{

SetPlayerSkin(playerid,PlayerInfo[playerid][pskin]);


and what i did wrong? I am making save skin system but when player login 2nd time so they can see skin on requestclass but can't choose another skin. but they are showing me only CJskin and when i spawn i have cjskin.

help please.


Re: player skin help - blackdragon1 - 22.02.2013

bump? i need it urgent


Re: player skin help - Private200 - 22.02.2013

in the way you made it, it looks alright. Try to fix your code up there please, we can't understand anything in that way.