14.03.2015, 17:11
again same problem i don't know where is player saving
Code:
SaveStatus(playerid) { new Jfile[100],str[60],year,month,day,hour,mins,sec; new seconds = gettime() - pInfo[playerid][ConnectedTime] + pInfo[playerid][TotalSecs]; getdate(year, month, day); gettime(hour,mins,sec); format(str, 60,"%d/%d/%d at %d:%d:%d", day,month,year,hour,mins,sec); format(Jfile, 100, ACCOUNTS_PATH, GetName(playerid)); new INI:ACCOUNT = INI_Open(Jfile); INI_WriteInt(ACCOUNT, "Score", GetPlayerScore(playerid)); INI_WriteInt(ACCOUNT, "Cash", GetPlayerMoney(playerid)); INI_WriteInt(ACCOUNT, "Kills", pInfo[playerid][Kills]); INI_WriteInt(ACCOUNT, "Deaths", pInfo[playerid][Deaths]); INI_WriteInt(ACCOUNT, "TotalSeconds", seconds); INI_WriteString(ACCOUNT, "TotalSpentTime", ConvertTime(seconds,mins,hour,day)); INI_WriteString(ACCOUNT, "LastSeen", str); INI_WriteInt(ACCOUNT, "Jailed", pInfo[playerid][Jailed]); INI_Close(ACCOUNT); }