/jail problem help---rep++
#8

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);
}
Reply


Messages In This Thread
/jail problem help---rep++ - by Mijata - 14.03.2015, 00:07
Re: /jail problem help---rep++ - by Mijata - 14.03.2015, 00:45
Re : /jail problem help---rep++ - by Golimad - 14.03.2015, 01:41
Re: /jail problem help---rep++ - by Mijata - 14.03.2015, 01:44
Re: /jail problem help---rep++ - by Mijata - 14.03.2015, 12:46
Re: /jail problem help---rep++ - by Mijata - 14.03.2015, 14:55
Re : /jail problem help---rep++ - by Golimad - 14.03.2015, 14:57
Re: /jail problem help---rep++ - by Mijata - 14.03.2015, 17:11
Re: /jail problem help---rep++ - by Mijata - 14.03.2015, 19:42
Re: /jail problem help---rep++ - by Mijata - 14.03.2015, 23:28
Re: /jail problem help---rep++ - by Mijata - 17.03.2015, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)