[DINI] Help, why doesnt this work?
#1

Hey SAMP forum..

I've made a register system, and
OnPlayerDisconnect i have SaveStats(playerid);

like this
Код:
OnPlayerDisconnect(playerid)
{
   SaveStats(playerid);
   return 1;
}
and my SaveStats func. is

Код:
stock SaveStats(playerid)
{
	if(IsLogged[playerid] == 1)
	{
		new file[24+15];
		new PName[MAX_PLAYER_NAME];
		GetPlayerName(playerid, PName, sizeof(PName));
		format(file,sizeof(file),"N-Register/users/%s.ini",PName);

		dini_IntSet(file,"Cash", GetPlayerMoney(playerid));
		dini_IntSet(file,"Score", GetPlayerScore(playerid));
	}
}
Why doesnt it work?
Reply


Messages In This Thread
[DINI] Help, why doesnt this work? - by Niixie - 13.01.2010, 17:53
Re: [DINI] Help, why doesnt this work? - by KnooL - 13.01.2010, 18:12
Re: [DINI] Help, why doesnt this work? - by Niixie - 13.01.2010, 18:20
Re: [DINI] Help, why doesnt this work? - by Calgon - 13.01.2010, 18:33
Re: [DINI] Help, why doesnt this work? - by KnooL - 13.01.2010, 18:41
Re: [DINI] Help, why doesnt this work? - by Calgon - 13.01.2010, 19:40
Re: [DINI] Help, why doesnt this work? - by Grim_ - 13.01.2010, 19:46
Re: [DINI] Help, why doesnt this work? - by Calgon - 13.01.2010, 19:49
Re: [DINI] Help, why doesnt this work? - by Grim_ - 13.01.2010, 19:50
Re: [DINI] Help, why doesnt this work? - by Calgon - 13.01.2010, 20:01

Forum Jump:


Users browsing this thread: 1 Guest(s)