This topic was marked solved by its starter, on November 13th, 2014, 09:07 AM

Kratos_

  • Jr. Member
  • Mutaros Apotheoses
  • Posts: 86
Re: Stats Problem :-/
« Reply #15, on November 11th, 2014, 04:12 PM »Last edited on November 11th, 2014, 04:14 PM
Have you specified somewhere this:-
stats[player.ID].PreviousData = true;
If you haven't, then that's why the record is inserting again & again.
Create the new record in table when the player registers. If something unusual happened then their records will not be created. On Player leave, save the player stats.[ No need to insert at that event ].  In login cmd & in register cmd too , set the above condition.
In the middle of chaos , lies opportunity.

.

  • VC:MP Beta Tester
  • .
  • Posts: 1,808
Re: Stats Problem :-/
« Reply #16, on November 11th, 2014, 04:25 PM »
That's because your query inserts a new row every time instead of updating the old one.
.

ali_vcmp

  • Newbie
  • Posts: 49
Re: Stats Problem :-/
« Reply #17, on November 13th, 2014, 09:07 AM »Last edited on November 13th, 2014, 10:03 AM
Topic Locked My Problem Solved :D Thanks YouAll Thanks s.L.C And Seeby