Score problem..
#1

Hello guys,

Iґm having a problem with score update in the server.
Im using Dini, for register etc.

It saves this for score
Код:
dini_IntSet(udb_encode(playername), "Frags", Frags[playerid]);
This is under command register.
Код:
tmps1 = dini_Get(udb_encode(playername), "Frags");
Frags[playerid] = strval( tmps1 );
This is under command login
Код:
tmps1 = dini_Get(udb_encode(playername), "Frags");
if (strval(tmps1) == 1){
 SetPlayerScore(playerid, dini_Int(udb_encode(playername),"Frags"));
}
Under OnPlayerSpawn
Код:
SetPlayerScore(killerid, GetPlayerScore (killerid)+1);
Under OnPlayerDeath

Now this is the problem, it saves when registering to frags = 0
When I kill someone and alt+tab out of the game and open my file, it says I have frags = 1 (And that's good)
But when I leave the server it puts frags = 0 back.

Question is how could this happen and could someone explain me what is wrong..

Thanks in advance
Reply


Messages In This Thread
Score problem.. - by [DDC]Delight - 04.03.2010, 16:43
Re: Score problem.. - by [DDC]Delight - 05.03.2010, 07:44
Re: Score problem.. - by rothhear - 05.03.2010, 08:13
Re: Score problem.. - by [DDC]Delight - 05.03.2010, 16:18
Re: Score problem.. - by [DDC]Delight - 06.03.2010, 12:18
Re: Score problem.. - by [DDC]Delight - 07.03.2010, 14:12

Forum Jump:


Users browsing this thread: 3 Guest(s)