Question about database save points,kill, and deaths

04/04/2016 17:22 jeromerz#1
Hello guys,

i need a little help about saving the points, kills, and deaths on Points table without replacing the current values there but the new values will be added to the old values.

my prodecure on saving
but instead of adding or updating the values on POINTS_TBL it replaces the value there with the new ones.

Sorry for the bad english. im kinda new about databases..

Thanks in advance :)
04/04/2016 18:14 alfredico#2
Quote:
Originally Posted by jeromerz View Post
i need a little help about saving the points, kills, and deaths on Points table without replacing the current values there but the new values will be added to the old values.
What? Any example?
04/04/2016 22:23 jeromerz#3
Im working FFA System based on erendora. When the player war starts and a recorded score is added on the database the next time i reopen the event or the next player war occurs. The score recorded is replaced on the score_tbl instead of adding it.

I hope you can help me :) thnx in advance
04/05/2016 01:38 alfredico#4
After reading over 10 times trying to figure out what you want to say, I guess you are trying to increase the points each time the event finishes.

nPoints = nPoints + @nPoints,
nKills = nKills + @[Only registered and activated users can see links. Click Here To Register...]lls,
nDeaths = nDeaths + @[Only registered and activated users can see links. Click Here To Register...]s
04/05/2016 22:35 jeromerz#5
Quote:
Originally Posted by alfredico View Post
After reading over 10 times trying to figure out what you want to say, I guess you are trying to increase the points each time the event finishes.

nPoints = nPoints + @nPoints,
nKills = nKills + @[Only registered and activated users can see links. Click Here To Register...]lls,
nDeaths = nDeaths + @[Only registered and activated users can see links. Click Here To Register...]s
Thanks sir ^^ :handsdown::handsdown: