#2

It also doens't work for me (who typed the command).

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;
}
Here I load them. But the weird part is, it's removing after the GMX.
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;
}
Reply


Messages In This Thread
GMX - by Kingunit - 30.08.2011, 13:28
Re: GMX - by Kingunit - 30.08.2011, 13:38
Re: GMX - by Kayaque - 30.08.2011, 13:40
Re: GMX - by Kingunit - 30.08.2011, 13:42
Re: GMX - by Venice - 30.08.2011, 13:43
Re: GMX - by Kingunit - 30.08.2011, 13:49
Re: GMX - by Kingunit - 30.08.2011, 14:09
Re: GMX - by Kingunit - 30.08.2011, 14:19
Re: GMX - by Universal - 30.08.2011, 14:31
Re: GMX - by Kingunit - 30.08.2011, 14:32

Forum Jump:


Users browsing this thread: 2 Guest(s)