22.02.2013, 13:32
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.
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.