Save stats
#10

Quote:
Originally Posted by Hade.
Посмотреть сообщение
I have those under OnPlayerDisconnect
You're right, those should be made into a separate function and saved upon OnPlayerDisconnect or on a reasonable timer. However, the issue with your script is that (as far as I can see through the code you posted), you're not actually assigning the variables [Money] any variable, so when it saves, it's just saving 0. Try editing the file and setting money to a different number and seeing if it resets to 0.

Also OnPlayerUpdate doesn't need to be ran in a timer.
Reply


Messages In This Thread
Save stats - by Pty - 06.09.2013, 21:24
Re: Save stats - by bensmart469 - 06.09.2013, 22:59
Re: Save stats - by Pty - 06.09.2013, 23:19
Re: Save stats - by Threshold - 06.09.2013, 23:59
Re: Save stats - by Tamer - 07.09.2013, 06:22
Re: Save stats - by XcorelloX - 07.09.2013, 07:49
Re: Save stats - by Pty - 07.09.2013, 12:20
Re: Save stats - by Pty - 07.09.2013, 18:11
Re: Save stats - by Hade. - 07.09.2013, 19:30
Re: Save stats - by XcorelloX - 08.09.2013, 01:37

Forum Jump:


Users browsing this thread: 4 Guest(s)