29.08.2011, 18:10
Try this?
Give those a go, if not Re hit a post
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