Score are gone [HELP] +rep
#7

In the same way you created stats for a registered player (money-score-kills-deaths or whatever), create one more and that is "Logged". When Logged=1 means player is logged in. Adding an if (Logged==1) under public OnPlayerUpdate(playerid) will make this public be triggered only when player is logged in. What is happening to your situation is that OnplayerUpdate takes the stats values as soon as you enter, which of cource are all 0 and set them in .ini file, reseting your stats. I had the same exact problem and that's how i solved it.
Reply


Messages In This Thread
Score are gone [HELP] +rep - by adios1 - 02.04.2013, 18:10
Re: Score are gone [HELP] +rep - by L.Hudson - 02.04.2013, 18:11
Re: Score are gone [HELP] +rep - by Isolated - 02.04.2013, 18:11
Re: Score are gone [HELP] +rep - by adios1 - 02.04.2013, 18:18
AW: Score are gone [HELP] +rep - by [AK]Nazgul - 02.04.2013, 18:29
Re: AW: Score are gone [HELP] +rep - by adios1 - 03.04.2013, 17:09
Re: Score are gone [HELP] +rep - by HurtLocker - 03.04.2013, 17:18
AW: Score are gone [HELP] +rep - by [AK]Nazgul - 03.04.2013, 18:01
Re: AW: Score are gone [HELP] +rep - by HurtLocker - 03.04.2013, 18:14
AW: Re: AW: Score are gone [HELP] +rep - by [AK]Nazgul - 03.04.2013, 19:03

Forum Jump:


Users browsing this thread: 2 Guest(s)