Randomly score reset
#2

Ok. You know possible cause since I told you on IRC and I'm gonna post it here just in case someone gets in same problem. The most logical cause of this is that you are saving wrong variables. Normally when player connects his score is 0, same as all other stats (by stats we mean kills, deaths, money...). Now if your timer of 5 minutes expires before he logs in his old stats will be over-written by 0s. Since chances of this situation to happen are ~1:1 000 000 next possible scenario is that someone tries to enter on someone else's nick. Ex. I enter under your nick, I don't know password and I leave. Remember that stats are still 0 in Variables. OnPLayerDisconnect gets called and all original data are overwritten with 0s.

Solution: Save player data only if he is logged in.
Reply


Messages In This Thread
Randomly score reset - by Face9000 - 26.03.2013, 18:46
Re: Randomly score reset - by [MG]Dimi - 26.03.2013, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)