Skin isn't saving
#5

Try this?

pawn Код:
new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][Kills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][Deaths]);
    INI_WriteInt(File,"Score",GetPlayerScore(playerid));
    INI_WriteInt(File,"Adminlevel",PlayerInfo[playerid][Adminlevel]);
    INI_WriteInt(File,"Skin", PlayerInfo[playerid][Skin];
    INI_Close(File);

public OnPlayerDialogResponse blabla
{
    new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_WriteInt(File,"Score",0);
                INI_WriteInt(File,"Adminlevel",0);
                INI_WriteInt(File,"Skin", PlayerInfo[playerid][Skin];
                INI_Close(File);
}

public OnPlayerSpawn
{
    SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
}

Give those a go, if not Re hit a post
Reply


Messages In This Thread
Skin isn't saving - by Kingunit - 29.08.2011, 17:41
Re: Skin isn't saving - by iPLEOMAX - 29.08.2011, 17:45
Re: Skin isn't saving - by Jafet_Macario - 29.08.2011, 17:52
Re: Skin isn't saving - by Kingunit - 29.08.2011, 17:58
Re: Skin isn't saving - by PhoenixB - 29.08.2011, 18:10
Re: Skin isn't saving - by Kingunit - 29.08.2011, 18:20
Re: Skin isn't saving - by [MG]Dimi - 29.08.2011, 18:26
Re: Skin isn't saving - by iPLEOMAX - 29.08.2011, 18:27
Re: Skin isn't saving - by Kingunit - 29.08.2011, 18:30

Forum Jump:


Users browsing this thread: 2 Guest(s)