01.12.2012, 04:00
So my idea is I want the player to play for 4 minutes before his/her account is saved. This is what I did, What am I doing wrong?
pawn Код:
SetTimerEx("SaveUserData", 240000, false, "d", playerid);
stock SaveUserData(playerid)
{
new Hashpass[129];
WP_Hash(Hashpass, sizeof(Hashpass), inputtext);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"User's Data");
INI_WriteString(File, "Password", Hashpass);
INI_WriteInt(File, "Admin", PlayerInfo[playerid][pAdmin] = 0);
INI_WriteInt(File, "Money", PlayerInfo[playerid][pMoney] = 0);
INI_WriteInt(File, "Kills", PlayerInfo[playerid][pKills] = 0);
INI_WriteInt(File, "Deaths", PlayerInfo[playerid][pDeaths] = 0);
INI_WriteInt(File, "Interior", PlayerInfo[playerid][pInterior] = 0);
INI_WriteInt(File, "VirtualWorld", PlayerInfo[playerid][pVirtualWorld] = 0);
INI_WriteInt(File, "Skin", PlayerInfo[playerid][pSkin] = 0);
INI_WriteFloat(File, "PositionX", PlayerInfo[playerid][pPositionX] = 0);
INI_WriteFloat(File, "PositionY", PlayerInfo[playerid][pPositionY] = 0);
INI_WriteFloat(File, "PositionZ", PlayerInfo[playerid][pPositionZ] = 0);
INI_WriteFloat(File, "Angle", PlayerInfo[playerid][pAngle] = 0);
return 1;
}