dini saving.
#8

Код:
public OnPlayerDisconnect(playerid, reason)
{
 	if(Logged[playerid] == 1)
 	{
		new file[128];
		new plName[MAX_PLAYER_NAME];
		GetPlayerName(playerid, plName, sizeof(plName));
		format(file, sizeof(file), "\\Users\\%s.ini", plName);

		if(dini_Exists(file))
		{
			dini_IntSet(file, "Score", GetPlayerScore(playerid));
  		dini_IntSet(file, "Money", GetPlayerMoney(playerid));
  		dini_IntSet(file, "pJob", PlayerInfo[playerid][pJob]);
  			return 1;
  		}
	}
	
	Logged[playerid] = false;
	return 1;
}
Like this ?
Reply


Messages In This Thread
dini saving. - by Koppa, - 04.06.2009, 18:37
Re: dini saving. - by Correlli - 04.06.2009, 19:00
Re: dini saving. - by Hot - 04.06.2009, 19:43
Re: dini saving. - by Koppa, - 04.06.2009, 20:58
Re: dini saving. - by Correlli - 04.06.2009, 22:05
Re: dini saving. - by Koppa, - 04.06.2009, 22:19
Re: dini saving. - by Correlli - 04.06.2009, 22:22
Re: dini saving. - by Koppa, - 04.06.2009, 22:26
Re: dini saving. - by Correlli - 04.06.2009, 22:40
Re: dini saving. - by Koppa, - 04.06.2009, 22:59

Forum Jump:


Users browsing this thread: 1 Guest(s)