Skin load! how
#5

You will have to store datas for that.

pawn Код:
enum PlayerInfo
{
    pSkin
}
new pInfo[MAX_PLAYERS][PlayerInfo];

forward loadaccount_user(playerid, name[], value[]);
public loadaccount_user(playerid, name[], value[])
{
    INI_Int("Skin", pInfo[playerid][pSkin]);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new INI:file = INI_Open(Path(playerid));
    INI_SetTag(file,"Player's Data");
    INI_WriteInt(file,"Skin",pInfo[playerid][pSkin]
    INI_Close(file);
    return 1;
}
Reply


Messages In This Thread
Problem Fixed - by JeaSon - 18.10.2013, 06:39
Re : Skin load! how - by Ethan_Marcus - 18.10.2013, 06:56
Re: Skin load! how - by JeaSon - 18.10.2013, 06:58
Re : Skin load! how - by Ethan_Marcus - 18.10.2013, 07:02
Re: Skin load! how - by Fr33z - 18.10.2013, 07:03
Re: Skin load! how - by JeaSon - 18.10.2013, 07:07

Forum Jump:


Users browsing this thread: 1 Guest(s)