MySQL - Players Get Same Stats - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL - Players Get Same Stats (
/showthread.php?tid=365464)
MySQL - Players Get Same Stats -
Camacorn - 03.08.2012
- Resolved on my own
Re: MySQL - Players Get Same Stats -
Kindred - 03.08.2012
I just suggest showing your saving/loading functions, and if you have none, show OnPlayerDisconnect and wherever is loads the shit.
The only thing I could think of is if it creates one row, and then saves all the stats just to that one row, and doesn't make any new rows or some shit. But I highly doubt that's the reason.
Re: MySQL - Players Get Same Stats -
Camacorn - 03.08.2012
- Resolved on my own
Re: MySQL - Players Get Same Stats -
ryansheilds - 03.08.2012
Did you reset the variables OnPlayerConnect?
For example:
PlayerInfo[playerid][pScore] = 0;
PlayerInfo[playerid][pCash] = 0; ...