Cause you're not loading the data again in your timer once you saved.
pawn Код:
public SaveDataTimer(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"WEAPON_AMMU_1",PlayerInfo[playerid][pWam1]);
INI_WriteInt(File,"WEAPON_2",PlayerInfo[playerid][pW2]);
INI_WriteInt(File,"WEAPON_AMMU_2",PlayerInfo[playerid][pWam2]);
INI_WriteInt(File,"WEAPON_3",PlayerInfo[playerid][pW3]);
INI_WriteInt(File,"WEAPON_AMMU_3",PlayerInfo[playerid][pWam3]);
INI_WriteInt(File,"WEAPON_4",PlayerInfo[playerid][pW4]);
INI_WriteInt(File,"WEAPON_AMMU_4",PlayerInfo[playerid][pWam4]);
INI_WriteInt(File,"WEAPON_5",PlayerInfo[playerid][pW5]);
INI_WriteInt(File,"WEAPON_AMMU_5",PlayerInfo[playerid][pWam5]);
INI_WriteInt(File,"WEAPON_6",PlayerInfo[playerid][pW6]);
INI_WriteInt(File,"WEAPON_AMMU_6",PlayerInfo[playerid][pWam6]);
INI_WriteInt(File,"WEAPON_7",PlayerInfo[playerid][pW7]);
INI_WriteInt(File,"WEAPON_AMMU_7",PlayerInfo[playerid][pWam7]);
INI_WriteInt(File,"WEAPON_8",PlayerInfo[playerid][pW8]);
INI_WriteInt(File,"WEAPON_AMMU_8",PlayerInfo[playerid][pWam8]);
INI_WriteInt(File,"Skin",GetPlayerSkin(playerid));
INI_WriteInt(File,"Faction",gTeam[playerid]);
INI_WriteInt(File,"Skill",PlayerInfo[playerid][wSkill]);
INI_Close(File);
SendClientMessage(playerid, -1, "UPDATE");
return 1;
}
Should be:
pawn Код:
public SaveDataTimer(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"WEAPON_AMMU_1",PlayerInfo[playerid][pWam1]);
INI_WriteInt(File,"WEAPON_2",PlayerInfo[playerid][pW2]);
INI_WriteInt(File,"WEAPON_AMMU_2",PlayerInfo[playerid][pWam2]);
INI_WriteInt(File,"WEAPON_3",PlayerInfo[playerid][pW3]);
INI_WriteInt(File,"WEAPON_AMMU_3",PlayerInfo[playerid][pWam3]);
INI_WriteInt(File,"WEAPON_4",PlayerInfo[playerid][pW4]);
INI_WriteInt(File,"WEAPON_AMMU_4",PlayerInfo[playerid][pWam4]);
INI_WriteInt(File,"WEAPON_5",PlayerInfo[playerid][pW5]);
INI_WriteInt(File,"WEAPON_AMMU_5",PlayerInfo[playerid][pWam5]);
INI_WriteInt(File,"WEAPON_6",PlayerInfo[playerid][pW6]);
INI_WriteInt(File,"WEAPON_AMMU_6",PlayerInfo[playerid][pWam6]);
INI_WriteInt(File,"WEAPON_7",PlayerInfo[playerid][pW7]);
INI_WriteInt(File,"WEAPON_AMMU_7",PlayerInfo[playerid][pWam7]);
INI_WriteInt(File,"WEAPON_8",PlayerInfo[playerid][pW8]);
INI_WriteInt(File,"WEAPON_AMMU_8",PlayerInfo[playerid][pWam8]);
INI_WriteInt(File,"Skin",GetPlayerSkin(playerid));
INI_WriteInt(File,"Faction",gTeam[playerid]);
INI_WriteInt(File,"Skill",PlayerInfo[playerid][wSkill]);
INI_Close(File);
SendClientMessage(playerid, -1, "UPDATE");
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); //Loading the data once again.
return 1;
}