30.08.2011, 13:38
It also doens't work for me (who typed the command).
Here I load them. But the weird part is, it's removing after the GMX.
Full SaveUserDate:
pawn Код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][Password]);
INI_Int("Cash",PlayerInfo[playerid][Cash]);
INI_Int("Kills",PlayerInfo[playerid][Kills]);
INI_Int("Deaths",PlayerInfo[playerid][Deaths]);
INI_Int("Score",PlayerInfo[playerid][Score]);
INI_Int("Adminlevel",PlayerInfo[playerid][Adminlevel]);
INI_Int("Skin",PlayerInfo[playerid][Skin]);
return 1;
}
Full SaveUserDate:
pawn Код:
forward SaveUserDate(playerid);
public SaveUserDate(playerid)
{
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", GetPlayerSkin(playerid));
INI_Close(File);
return true;
}