Saving stats
#8

Im not familiar to that INC your using, but it seems right to me.

My theory is that when a player types /q the player stats get automatically deleted as a nice feature of GetPVar.
I think that because that the server will first have to call the OnPlayerDisconnect callback and then get the information from the stock, the stats gets deleted before they get saved in the file. This can also be seen in alot of cases when you disconnect that the IP will be shown as 255.255.255.255. Try to move the saving code to the callback itself, or update the file whenever the information changes (like he dies or gets a higher or lower ammount of money)
Reply


Messages In This Thread
Saving stats - by Dime - 22.09.2010, 08:28
Re: Saving stats - by Matej_ - 22.09.2010, 08:33
Re: Saving stats - by Dime - 22.09.2010, 08:36
Re: Saving stats - by willsuckformoney - 22.09.2010, 08:53
Re: Saving stats - by Dime - 22.09.2010, 08:53
Re: Saving stats - by willsuckformoney - 22.09.2010, 08:58
Re: Saving stats - by Dime - 22.09.2010, 09:18
Re: Saving stats - by Desert - 22.09.2010, 09:44
Re: Saving stats - by Dime - 22.09.2010, 09:50
Re: Saving stats - by woot - 22.09.2010, 11:15

Forum Jump:


Users browsing this thread: 4 Guest(s)